aboutsummaryrefslogtreecommitdiff
path: root/math/test-tgmath.c
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-12-11 21:51:49 +0000
committerJoseph Myers <josmyers@redhat.com>2024-12-11 21:51:49 +0000
commitffe79c446ced76d7c1a77804ff2cc32eccbc7c7e (patch)
treefa436fea1f0eebeb843ae0c16df84f120f859eb3 /math/test-tgmath.c
parentaec85b2557cdb2cc1fc726a50c33848826f00f4d (diff)
downloadglibc-ffe79c446ced76d7c1a77804ff2cc32eccbc7c7e.zip
glibc-ffe79c446ced76d7c1a77804ff2cc32eccbc7c7e.tar.gz
glibc-ffe79c446ced76d7c1a77804ff2cc32eccbc7c7e.tar.bz2
Implement C23 atanpi
C23 adds various <math.h> function families originally defined in TS 18661-4. Add the atanpi functions (atan(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.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/math/test-tgmath.c b/math/test-tgmath.c
index b3a948d..79cb58e 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 178
+#define NCALLS 180
#define NCALLS_INT 4
#define NCCALLS 47
@@ -241,6 +241,7 @@ F(compile_test) (void)
b = asin (asin (a));
a = tan (tan (x));
b = tanpi (tanpi (x));
+ b = atanpi (atanpi (a));
b = atan (atan (a));
c = atan2 (atan2 (a, c), atan2 (b, x));
a = cosh (cosh (x));
@@ -365,6 +366,7 @@ F(compile_test) (void)
a = tan (y);
a = tanpi (y);
a = atan (y);
+ a = atanpi (y);
a = atan2 (y, y);
a = cosh (y);
a = acosh (y);
@@ -566,6 +568,14 @@ TYPE
}
TYPE
+(F(atanpi)) (TYPE x)
+{
+ ++count;
+ P ();
+ return x;
+}
+
+TYPE
(F(cosh)) (TYPE x)
{
++count;