1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Implement C23 tanpi

C23 adds various <math.h> function families originally defined in TS
18661-4.  Add the tanpi functions (tan(pi*x)).

Tested for x86_64 and x86, and with build-many-glibcs.py.
This commit is contained in:
Joseph Myers
2024-12-05 21:42:10 +00:00
parent 062257c5d9
commit f9e90e4b4c
51 changed files with 9618 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ volatile int count_cdouble;
volatile int count_cfloat;
volatile int count_cldouble;
#define NCALLS 172
#define NCALLS 174
#define NCALLS_INT 4
#define NCCALLS 47
@@ -238,6 +238,7 @@ F(compile_test) (void)
b = sinpi (sinpi (x));
b = asin (asin (a));
a = tan (tan (x));
b = tanpi (tanpi (x));
b = atan (atan (a));
c = atan2 (atan2 (a, c), atan2 (b, x));
a = cosh (cosh (x));
@@ -358,6 +359,7 @@ F(compile_test) (void)
a = sinpi (y);
a = asin (y);
a = tan (y);
a = tanpi (y);
a = atan (y);
a = atan2 (y, y);
a = cosh (y);
@@ -519,6 +521,14 @@ TYPE
return x;
}
TYPE
(F(tanpi)) (TYPE x)
{
++count;
P ();
return x;
}
TYPE
(F(atan)) (TYPE x)
{