/picolibc-3.7.0-3.6.0/test/ |
D | long_double_vec.h | 4 { .line = __LINE__, .x = -10L, .y = 1 }, 5 { .line = __LINE__, .x = -9.9L, .y = 1 }, 6 { .line = __LINE__, .x = -9.8L, .y = 1 }, 7 { .line = __LINE__, .x = -9.7L, .y = 1 }, 8 { .line = __LINE__, .x = -9.6L, .y = 1 }, 9 { .line = __LINE__, .x = -9.5L, .y = 1 }, 10 { .line = __LINE__, .x = -9.4L, .y = 1 }, 11 { .line = __LINE__, .x = -9.3L, .y = 1 }, 12 { .line = __LINE__, .x = -9.2L, .y = 1 }, 13 { .line = __LINE__, .x = -9.1L, .y = 1 }, [all …]
|
D | test-fma.c | 119 float x, y, z; member 124 double x, y, z; member 130 long double x, y, z; member 146 equalf(float x, float y) in equalf() argument 148 if (isnan(x) && isnan(y)) in equalf() 150 return x == y; in equalf() 178 float y = fmaf_vec[t].y; in test_fmaf() local 180 volatile float r = fmaf(x, y, z); in test_fmaf() 184 strfromf(ys, sizeof(xs), "%a", y); in test_fmaf() 219 equal(double x, double y) in equal() argument [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/ |
D | e_lgammal_r.c | 202 long double y, z; in sin_pi() local 211 y = -x; /* x is assume negative */ in sin_pi() 217 z = floorl (y); in sin_pi() 218 if (z != y) in sin_pi() 220 y *= 0.5L; in sin_pi() 221 y = 2.0L*(y - floorl(y)); /* y = |x| mod 2.0 */ in sin_pi() 222 n = (int) (y*4.0L); in sin_pi() 228 y = zero; n = 0; /* y must be even */ in sin_pi() 233 z = y + two63; /* exact */ in sin_pi() 236 y = n; in sin_pi() [all …]
|
D | e_powl.c | 186 powl(long double x, long double y) in powl() argument 193 if( !isnanl_inline(y) && y == 0.0L ) { in powl() 195 return x + y; in powl() 200 if (issignalingl_inline(y)) in powl() 201 return x + y; in powl() 206 return( x + y ); in powl() 207 if( isnanl_inline(y) ) in powl() 208 return( x + y ); in powl() 210 w = floorl(y); in powl() 212 iyflg = (w == y); in powl() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/math/ |
D | srf_lgamma.c | 93 float y, z; in sin_pif() local 101 y = -x; /* x is assume negative */ in sin_pif() 107 z = floorf(y); in sin_pif() 108 if (z != y) { /* inexact anyway */ in sin_pif() 109 y *= (float)0.5; in sin_pif() 110 y = (float)2.0 * (y - floorf(y)); /* y = |x| mod 2.0 */ in sin_pif() 111 n = (__int32_t)(y * (float)4.0); in sin_pif() 114 y = zero; in sin_pif() 118 z = y + two23; /* exact */ in sin_pif() 121 y = n; in sin_pif() [all …]
|
D | sr_lgamma.c | 161 __float64 y, z; in sin_pi() local 169 y = -x; /* x is assume negative */ in sin_pi() 175 z = floor64(y); in sin_pi() 176 if (z != y) { /* inexact anyway */ in sin_pi() 177 y *= _F_64(0.5); in sin_pi() 178 y = _F_64(2.0) * (y - floor64(y)); /* y = |x| mod 2.0 */ in sin_pi() 179 n = (__int32_t)(y * _F_64(4.0)); in sin_pi() 182 y = zero; in sin_pi() 186 z = y + two52; /* exact */ in sin_pi() 189 y = n; in sin_pi() [all …]
|
D | sf_rem_pio2.c | 81 __rem_pio2f(float x, float *y) in __rem_pio2f() argument 92 y[0] = x; in __rem_pio2f() 93 y[1] = 0; in __rem_pio2f() 100 y[0] = z - pio2_1t; in __rem_pio2f() 101 y[1] = (z - y[0]) - pio2_1t; in __rem_pio2f() 104 y[0] = z - pio2_2t; in __rem_pio2f() 105 y[1] = (z - y[0]) - pio2_2t; in __rem_pio2f() 111 y[0] = z + pio2_1t; in __rem_pio2f() 112 y[1] = (z - y[0]) + pio2_1t; in __rem_pio2f() 115 y[0] = z + pio2_2t; in __rem_pio2f() [all …]
|
D | s_rem_pio2.c | 73 __rem_pio2(__float64 x, __float64 *y) in __rem_pio2() argument 85 y[0] = x; in __rem_pio2() 86 y[1] = 0; in __rem_pio2() 93 y[0] = z - pio2_1t; in __rem_pio2() 94 y[1] = (z - y[0]) - pio2_1t; in __rem_pio2() 97 y[0] = z - pio2_2t; in __rem_pio2() 98 y[1] = (z - y[0]) - pio2_2t; in __rem_pio2() 104 y[0] = z + pio2_1t; in __rem_pio2() 105 y[1] = (z - y[0]) + pio2_1t; in __rem_pio2() 108 y[0] = z + pio2_2t; in __rem_pio2() [all …]
|
D | sf_cos.c | 22 float y[2], z = 0.0; in cosf() local 38 n = __rem_pio2f(x, y); in cosf() 41 return __kernel_cosf(y[0], y[1]); in cosf() 43 return -__kernel_sinf(y[0], y[1], 1); in cosf() 45 return -__kernel_cosf(y[0], y[1]); in cosf() 47 return __kernel_sinf(y[0], y[1], 1); in cosf()
|
D | sf_sin.c | 22 float y[2], z = 0.0; in sinf() local 38 n = __rem_pio2f(x, y); in sinf() 41 return __kernel_sinf(y[0], y[1], 1); in sinf() 43 return __kernel_cosf(y[0], y[1]); in sinf() 45 return -__kernel_sinf(y[0], y[1], 1); in sinf() 47 return -__kernel_cosf(y[0], y[1]); in sinf()
|
D | s_cos.c | 52 __float64 y[2], z = 0.0; in cos64() local 69 n = __rem_pio2(x, y); in cos64() 72 return __kernel_cos(y[0], y[1]); in cos64() 74 return -__kernel_sin(y[0], y[1], 1); in cos64() 76 return -__kernel_cos(y[0], y[1]); in cos64() 78 return __kernel_sin(y[0], y[1], 1); in cos64()
|
D | s_sin.c | 90 __float64 y[2], z = _F_64(0.0); in sin64() local 107 n = __rem_pio2(x, y); in sin64() 110 return __kernel_sin(y[0], y[1], 1); in sin64() 112 return __kernel_cos(y[0], y[1]); in sin64() 114 return -__kernel_sin(y[0], y[1], 1); in sin64() 116 return -__kernel_cos(y[0], y[1]); in sin64()
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/ |
D | e_log2l.c | 139 long double y; in neval() local 142 y = *p--; in neval() 145 y = y * x + *p--; in neval() 148 return y; in neval() 157 long double y; in deval() local 160 y = x + *p--; in deval() 163 y = y * x + *p--; in deval() 166 return y; in deval() 175 long double y; in log2l() local 205 y = 0.5L * z + 0.5L; in log2l() [all …]
|
D | e_log10l.c | 145 long double y; in neval() local 148 y = *p--; in neval() 151 y = y * x + *p--; in neval() 154 return y; in neval() 163 long double y; in deval() local 166 y = x + *p--; in deval() 169 y = y * x + *p--; in deval() 172 return y; in deval() 181 long double y; in log10l() local 211 y = 0.5L * z + 0.5L; in log10l() [all …]
|
D | s_erfl.c | 101 long double y; in neval() local 104 y = *p--; in neval() 107 y = y * x + *p--; in neval() 110 return y; in neval() 119 long double y; in deval() local 122 y = x + *p--; in deval() 125 y = y * x + *p--; in deval() 128 return y; in deval() 749 long double a, y, z; in erfl() local 768 y = one - erfcl (u.value); in erfl() [all …]
|
D | s_nexttowardf.c | 16 nexttowardf(float x, long double y) in nexttowardf() argument 23 GET_LDOUBLE_WORDS64(hy,ly,y); in nexttowardf() 28 force_eval_long_double(opt_barrier_long_double(y)+y); in nexttowardf() 32 return (float) (y + y); in nexttowardf() 34 if((long double) x==y) return y; /* x=y, return y */ in nexttowardf() 41 if((long double) x > y) { /* x > y, x -= ulp */ in nexttowardf() 47 if((long double) x < y) { /* x < y, x -= ulp */ in nexttowardf()
|
/picolibc-3.7.0-3.6.0/newlib/libm/complex/ |
D | csqrtf.c | 42 float x, y, r, t, scale; in csqrtf() local 45 y = cimagf (z); in csqrtf() 47 if (y == 0.0f) { in csqrtf() 52 return (0.0f + y * I); in csqrtf() 54 w = sqrtf(x) + y * I; in csqrtf() 60 r = fabsf(y); in csqrtf() 62 if (y > 0) in csqrtf() 70 if ((fabsf(x) > 4.0f) || (fabsf(y) > 4.0f)) { in csqrtf() 72 y *= 0.25f; in csqrtf() 77 y *= 6.7108864e7f; in csqrtf() [all …]
|
D | csqrt.c | 77 double x, y, r, t, scale; in csqrt() local 80 y = cimag (z); in csqrt() 82 if (y == 0.0) { in csqrt() 84 w = 0.0 + y * (double complex) I; in csqrt() 91 w = r + y * (double complex) I; in csqrt() 97 r = fabs(y); in csqrt() 99 if (y > 0) in csqrt() 106 if ((fabs(x) > 4.0) || (fabs(y) > 4.0)) { in csqrt() 108 y *= 0.25; in csqrt() 113 y *= 1.8014398509481984e16; in csqrt() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/common/ |
D | polevll.c | 71 long double y; in __polevll() local 73 y = *P++; in __polevll() 75 y = y * x + *P++; in __polevll() 78 return (y); in __polevll() 88 long double y; in __p1evll() local 91 y = x + *P++; in __p1evll() 93 y = y * x + *P++; in __p1evll() 96 return (y); in __p1evll()
|
D | s_fmaxl.c | 31 fmaxl(long double x, long double y) in fmaxl() argument 37 if (issignalingl_inline(y)) in fmaxl() 38 return y + y; in fmaxl() 42 u[1].e = y; in fmaxl() 47 return (y); in fmaxl() 53 return (u[0].bits.sign ? y : x); in fmaxl() 55 return (x > y ? x : y); in fmaxl()
|
D | s_fminl.c | 31 fminl(long double x, long double y) in fminl() argument 37 if (issignalingl_inline(y)) in fminl() 38 return y + y; in fminl() 42 u[1].e = y; in fminl() 47 return (y); in fminl() 53 return (u[1].bits.sign ? y : x); in fminl() 55 return (x < y ? x : y); in fminl()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/riscv/machine/ |
D | math.h | 107 copysign(double x, double y) in copysign() argument 110 __asm__("fsgnj.d\t%0, %1, %2" : "=f" (result) : "f" (x), "f" (y)); in copysign() 123 fmax (double x, double y) in fmax() argument 126 if (issignaling(x) || issignaling(y)) in fmax() 127 return x + y; in fmax() 129 __asm__ volatile("fmax.d\t%0, %1, %2" : "=f" (result) : "f" (x), "f" (y)); in fmax() 134 fmin (double x, double y) in fmin() argument 137 if (issignaling(x) || issignaling(y)) in fmin() 138 return x + y; in fmin() 140 __asm__ volatile("fmin.d\t%0, %1, %2" : "=f" (result) : "f" (x), "f" (y)); in fmin() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/common/ |
D | sincosf.c | 42 sincosf (float y, float *sinp, float *cosp) in sincosf() argument 44 double x = (double) y; in sincosf() 49 if (abstop12 (y) < abstop12 (pio4)) in sincosf() 53 if (unlikely (abstop12 (y) < abstop12 (0x1p-12f))) in sincosf() 55 if (unlikely (abstop12 (y) < abstop12 (0x1p-126f))) in sincosf() 58 *sinp = y; in sincosf() 65 else if (abstop12 (y) < abstop12 (120.0f)) in sincosf() 77 else if (likely (abstop12 (y) < abstop12 (INFINITY))) in sincosf() 79 uint32_t xi = asuint (y); in sincosf() 95 *sinp = *cosp = y - y; in sincosf() [all …]
|
D | sf_fmax.c | 9 float fmaxf(float x, float y) in fmaxf() argument 11 if (issignaling(x) || issignaling(y)) in fmaxf() 12 return x + y; in fmaxf() 15 return y; in fmaxf() 17 if (isnan(y)) in fmaxf() 20 return x > y ? x : y; in fmaxf()
|
D | sf_fmin.c | 9 float fminf(float x, float y) in fminf() argument 11 if (issignaling(x) || issignaling(y)) in fminf() 12 return x + y; in fminf() 15 return y; in fminf() 17 if (isnan(y)) in fminf() 20 return x < y ? x : y; in fminf()
|