Skip to content

Commit febfb5a

Browse files
authored
[SYCL][DOC] DeviceLib doc update to add new supported items (#3623)
* update devicelib doc Signed-off-by: gejin <[email protected]>
1 parent 92da579 commit febfb5a

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

sycl/doc/extensions/C-CXX-StandardLibrary/C-CXX-StandardLibrary.rst

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ List of supported functions from C standard library:
5353
- acoshf, acosh (from <math.h> or <cmath>)
5454
- asinhf, asinh (from <math.h> or <cmath>)
5555
- atanhf, atanh (from <math.h> or <cmath>)
56+
- scalbnf, scalbn (from <math.h> or <cmath>)
57+
- abs, labs, llabs (from <stdlib.h> or <cstdlib>)
58+
- div, ldiv, lldiv (from <stdlib.h> or <cstdlib>)
5659
- cimagf, cimag (from <complex.h>)
5760
- crealf, creal (from <complex.h>)
5861
- cargf, carg (from <complex.h>)
@@ -84,19 +87,6 @@ a baseline.
8487
NOTE: Only the GNU glibc, Microsoft C libraries are currently
8588
supported. Not all functions from <math.h> are supported right now,
8689
following math functions are not supported now:
87-
- abs
88-
- ceilf, ceil
89-
- copysignf, copysign
90-
- fabsf, fabs
91-
- floorf, floor
92-
- fmaxf, fmax
93-
- fminf, fmin
94-
- nextafterf, nextafter
95-
- rintf, rint
96-
- roundf, round
97-
- truncf, trunc
98-
- scalbnf, scalbn
99-
- nearbyintf, nearbyint
10090
- lrintf, lrint
10191
- nexttowardf, nexttoward
10292
- nanf, nan

sycl/doc/extensions/C-CXX-StandardLibrary/DeviceLibExtensions.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ cl_intel_devicelib_math
3737
==========================
3838

3939
.. code:
40+
int __devicelib_abs(int x);
41+
int __devicelib_labs(long int x);
42+
int __devicelib_llabs(long long int x);
43+
int __devicelib_div(int x, int y);
44+
int __devicelib_ldiv(long int x, long int y);
45+
int __devicelib_lldiv(long long int x, long long int y);
46+
float __devicelib_scalbnf(float x, int n);
4047
float __devicelib_logf(float x);
4148
float __devicelib_sinf(float x);
4249
float __devicelib_cosf(float x);
@@ -90,6 +97,7 @@ cl_intel_devicelib_math_fp64
9097
==========================
9198

9299
.. code:
100+
double __devicelib_scalbn(double x, int exp);
93101
double __devicelib_log(double x);
94102
double __devicelib_sin(double x);
95103
double __devicelib_cos(double x);

0 commit comments

Comments
 (0)