diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-12-10 20:42:20 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-12-10 20:42:20 +0000 |
commit | f962932206eca2cfed0a26e72220ad3465bf9e65 (patch) | |
tree | 33f72059fe06461b8da5f234a70f8352822a4405 /math/test-tgmath.c | |
parent | a9944a52c967ce76a5894c30d0274b824df43c7a (diff) | |
download | glibc-f962932206eca2cfed0a26e72220ad3465bf9e65.zip glibc-f962932206eca2cfed0a26e72220ad3465bf9e65.tar.gz glibc-f962932206eca2cfed0a26e72220ad3465bf9e65.tar.bz2 |
Implement C23 asinpi
C23 adds various <math.h> function families originally defined in TS
18661-4. Add the asinpi functions (asin(x)/pi).
Tested for x86_64 and x86, and with build-many-glibcs.py.
Diffstat (limited to 'math/test-tgmath.c')
-rw-r--r-- | math/test-tgmath.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/math/test-tgmath.c b/math/test-tgmath.c index 8e64f67..b3a948d 100644 --- a/math/test-tgmath.c +++ b/math/test-tgmath.c @@ -48,7 +48,7 @@ volatile int count_cdouble; volatile int count_cfloat; volatile int count_cldouble; -#define NCALLS 176 +#define NCALLS 178 #define NCALLS_INT 4 #define NCCALLS 47 @@ -237,6 +237,7 @@ F(compile_test) (void) b = acos (acos (a)); a = sin (sin (x)); b = sinpi (sinpi (x)); + b = asinpi (asinpi (a)); b = asin (asin (a)); a = tan (tan (x)); b = tanpi (tanpi (x)); @@ -360,6 +361,7 @@ F(compile_test) (void) a = sin (y); a = sinpi (y); a = asin (y); + a = asinpi (y); a = tan (y); a = tanpi (y); a = atan (y); @@ -524,6 +526,14 @@ TYPE } TYPE +(F(asinpi)) (TYPE x) +{ + ++count; + P (); + return x; +} + +TYPE (F(tan)) (TYPE x) { ++count; |