We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da1282c commit 82b67ddCopy full SHA for 82b67dd
1 file changed
OpenCL_C.txt
@@ -5282,9 +5282,9 @@ ifdef::cl_khr_fp16[gentypeh *fmax*(gentypeh _x_, half _y_)]
5282
{opencl_c_generic_address_space} feature:
5283
5284
gentype *fract*(gentype _x_, gentype _*iptr_)
5285
-// TODO The fp16 extension uses the constant `0x1.ffcp-1f` below - unclear
5286
-// why, see the OpenCL-Docs issue.
5287
- | Returns *fmin*(_x_ - *floor*(_x_), `0x1.fffffep-1f`).
+ | Returns *fmin*(_x_ - *floor*(_x_), `C`), where `C` is the constant
+ `0x1.fffffep-1f` for `float` aguments, `0x1.fffffffffffffp-1` for `double`
+ arguments, and `0x1.ffcp-1h` for `half` arguments.
5288
*floor*(x) is returned in _iptr_.
5289
footnote:[{fn-fract-min}]
5290
ifdef::cl_khr_fp16[]
0 commit comments