Skip to content

Commit 7e9a47e

Browse files
authored
Merge pull request #466 from gmlueck/gmlueck/builtin-what-changed
Add built-in function changes to "what's changed"
2 parents e63b8b7 + bec1a1e commit 7e9a47e

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

adoc/chapters/programming_interface.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24120,6 +24120,7 @@ corresponding [code]#vec#.
2412024120
|====
2412124121

2412224122

24123+
[[sec:integer-functions]]
2412324124
=== Integer functions
2412424125

2412524126
<<table.integer.functions>> describes the integer math functions that are
@@ -25433,6 +25434,7 @@ corresponding [code]#vec#.
2543325434
|====
2543425435

2543525436

25437+
[[sec:geometric-functions]]
2543625438
=== Geometric functions
2543725439

2543825440
In SYCL the OpenCL [keyword]#geometric functions# are available in the

adoc/chapters/what_changed.adoc

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,22 @@ the implementation needed to propagate the information up to the enclosing
147147
kernel.) The old {cpp} attribute form is no longer included in the SYCL
148148
specification.
149149

150-
The list of built-in integer math functions was extended with
151-
[code]#ctz()# in <<table.integer.functions>>.
152-
Specification of [code]#clz()# was extended with the case
153-
of argument is 0.
150+
Changes to the built-in functions specified in <<sycl:builtins>>:
151+
152+
* The specification no longer uses pseudo "generic type names" to describe
153+
these functions, and it now lists the exact synopsis for each function.
154+
155+
* The return type of the integer [code]#abs# and [code]#abs_diff# functions
156+
has changed. The return type is now the same as the input type, matching
157+
the {cpp} [code]#std::abs# function.
158+
159+
* The geometric functions specified in <<sec:geometric-functions>> now
160+
support the [code]#half# data type.
161+
162+
* The [code]#ctz# function was added to <<sec:integer-functions>>.
163+
164+
* The specification of [code]#clz# was clarified for the case when the input
165+
is zero.
154166

155167
The classes [code]#vector_class#, [code]#string_class#,
156168
[code]#function_class#, [code]#mutex_class#,

0 commit comments

Comments
 (0)