diff options
Diffstat (limited to 'math/test-tgmath.c')
-rw-r--r-- | math/test-tgmath.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/math/test-tgmath.c b/math/test-tgmath.c index 5dbf654..c1cd3fc 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 190 +#define NCALLS 194 #define NCALLS_INT 4 #define NCCALLS 47 @@ -269,6 +269,8 @@ F(compile_test) (void) a = logp1 (logp1 (x)); a = pow (pow (x, a), pow (c, b)); b = pown (pown (x, k), k); + b = compoundn (compoundn (x, k), k); + b = rootn (rootn (x, k), k); a = powr (powr (x, a), powr (c, b)); b = sqrt (sqrt (a)); a = rsqrt (rsqrt (b)); @@ -397,6 +399,8 @@ F(compile_test) (void) a = logp1 (y); a = pow (y, y); a = pown (y, 12345); + a = compoundn (y, 12345); + a = rootn (y, 12345); a = powr (y, y); a = sqrt (y); a = rsqrt (y); @@ -792,6 +796,22 @@ TYPE } TYPE +(F(compoundn)) (TYPE x, long long int y) +{ + ++count; + P (); + return x + y; +} + +TYPE +(F(rootn)) (TYPE x, long long int y) +{ + ++count; + P (); + return x + y; +} + +TYPE (F(sqrt)) (TYPE x) { ++count; |