Skip to content

Commit

Permalink
Fix formatting issues in builtins tables (#1290)
Browse files Browse the repository at this point in the history
1. Add missing newline between double and half versions of 'ldexp'
2. Fix formatting of snippets in 'mix'
  • Loading branch information
frasercrmck authored Jan 22, 2025
1 parent 19801fa commit 9dd4d7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenCL_C.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5368,6 +5368,7 @@ endif::cl_khr_fp16[]
double__n__ *ldexp*(double__n__ _x_, int__n__ _k_) +
double__n__ *ldexp*(double__n__ _x_, int _k_) +
double *ldexp*(double _x_, int _k_)

ifdef::cl_khr_fp16[]
half__n__ *ldexp*(half__n__ _x_, int__n__ _k_) +
half__n__ *ldexp*(half__n__ _x_, int _k_) +
Expand Down Expand Up @@ -6484,11 +6485,10 @@ ifdef::cl_khr_fp16[gentypeh *min*(gentypeh _x_, half _y_)]
ifdef::cl_khr_fp16[gentypeh *mix*(gentypeh _x_, gentypeh _y_, half _a_)]
a| Returns the linear blend of _x_ and _y_ implemented as:

_x_ + (_y_ - _x_) * _a_
_x_ + (_y_ - _x_) * _a_

_a_ must be a value in the range [0.0, 1.0].
If _a_ is not in the range [0.0, 1.0], the return values are
undefined.
_a_ must be a value in the range [0.0, 1.0]. If _a_ is not in the range [0.0,
1.0], the return values are undefined.

ifdef::cl_khr_fp16[]
NOTE: The half-precision *mix* function can be implemented using
Expand Down

0 comments on commit 9dd4d7b

Please sign in to comment.