Skip to content

Commit 9474eb9

Browse files
authored
Fix description of the half precision math functions (#860)
* Fix description of the half precision math functions Likewise in already merged KhronosGroup/SYCL-Docs#306 * Fix of error value (by @bashbaug) From discussion in #860
1 parent 2e53dde commit 9474eb9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

OpenCL_C.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4926,7 +4926,7 @@ The following table describes the following functions:
49264926
* A subset of functions from <<table-builtin-math>> that are defined with
49274927
the half_ prefix .
49284928
These functions are implemented with a minimum of 10-bits of accuracy,
4929-
i.e. an ULP value \<= 8192 ulp.
4929+
i.e. the maximum error value \<= 8192 ulp.
49304930
* A subset of functions from <<table-builtin-math>> that are defined with
49314931
the native_ prefix.
49324932
These functions may map to one or more native device instructions and

cxx/stdlib/math.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ The maximum error is implementation-defined.
986986
This section describes the following functions:
987987

988988
* A subset of functions from previous sections that are defined in the `cl::half_math` namespace.
989-
These functions are implemented with a minimum of 10-bits of accuracy i.e. an ULP value \<= 8192 ulp.
989+
These functions are implemented with a minimum of 10-bits of accuracy i.e. the maximum error \<= 8192 ulp.
990990
* half functions for following basic operations: divide and reciprocal.
991991
* Support for denormal values is optional for half_math:: functions. The `half_math::` functions may return any result allowed by the <<edge-case-behavior-in-flush-to-zero-mode, _Edge Case Behavior in Flush To Zero Mode_>> section, even when `-cl-denorms-are-zero` is not in force.
992992

0 commit comments

Comments
 (0)