/bionic/libm/src/ |
D | e_lgammaf_r.c | 95 float y,z; in sin_pif() local 102 y = -x; /* x is assume negative */ in sin_pif() 108 z = floorf(y); in sin_pif() 109 if(z!=y) { /* inexact anyway */ in sin_pif() 110 y *= (float)0.5; in sin_pif() 111 y = (float)2.0*(y - floorf(y)); /* y = |x| mod 2.0 */ in sin_pif() 112 n = (int) (y*(float)4.0); in sin_pif() 115 y = zero; n = 0; /* y must be even */ in sin_pif() 117 if(ix<0x4b000000) z = y+two23; /* exact */ in sin_pif() 120 y = n; in sin_pif() [all …]
|
D | e_lgamma_r.c | 161 double y,z; in sin_pi() local 168 y = -x; /* x is assume negative */ in sin_pi() 174 z = floor(y); in sin_pi() 175 if(z!=y) { /* inexact anyway */ in sin_pi() 176 y *= 0.5; in sin_pi() 177 y = 2.0*(y - floor(y)); /* y = |x| mod 2.0 */ in sin_pi() 178 n = (int) (y*4.0); in sin_pi() 181 y = zero; n = 0; /* y must be even */ in sin_pi() 183 if(ix<0x43300000) z = y+two52; /* exact */ in sin_pi() 186 y = n; in sin_pi() [all …]
|
D | e_rem_pio2.c | 76 int32_t __ieee754_rem_pio2(double x, double *y) in __ieee754_rem_pio2() argument 86 {y[0] = x; y[1] = 0; return 0;} in __ieee754_rem_pio2() 91 y[0] = z - pio2_1t; in __ieee754_rem_pio2() 92 y[1] = (z-y[0])-pio2_1t; in __ieee754_rem_pio2() 95 y[0] = z - pio2_2t; in __ieee754_rem_pio2() 96 y[1] = (z-y[0])-pio2_2t; in __ieee754_rem_pio2() 102 y[0] = z + pio2_1t; in __ieee754_rem_pio2() 103 y[1] = (z-y[0])+pio2_1t; in __ieee754_rem_pio2() 106 y[0] = z + pio2_2t; in __ieee754_rem_pio2() 107 y[1] = (z-y[0])+pio2_2t; in __ieee754_rem_pio2() [all …]
|
D | e_rem_pio2f.c | 62 int32_t __ieee754_rem_pio2f(float x, float *y) in __ieee754_rem_pio2f() argument 78 y[0] = r-w; in __ieee754_rem_pio2f() 79 y[1] = (r-y[0])-w; in __ieee754_rem_pio2f() 80 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;} in __ieee754_rem_pio2f() 87 y[0]=y[1]=x-x; return 0; in __ieee754_rem_pio2f() 94 y[0] = ty[0]; in __ieee754_rem_pio2f() 95 y[1] = ty[0] - y[0]; in __ieee754_rem_pio2f() 96 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;} in __ieee754_rem_pio2f()
|
D | s_cos.c | 54 double y[2],z=0.0; in cos() local 73 n = __ieee754_rem_pio2(x,y); in cos() 75 case 0: return __kernel_cos(y[0],y[1]); in cos() 76 case 1: return -__kernel_sin(y[0],y[1],1); in cos() 77 case 2: return -__kernel_cos(y[0],y[1]); in cos() 79 return __kernel_sin(y[0],y[1],1); in cos()
|
D | s_sin.c | 54 double y[2],z=0.0; in sin() local 73 n = __ieee754_rem_pio2(x,y); in sin() 75 case 0: return __kernel_sin(y[0],y[1],1); in sin() 76 case 1: return __kernel_cos(y[0],y[1]); in sin() 77 case 2: return -__kernel_sin(y[0],y[1],1); in sin() 79 return -__kernel_cos(y[0],y[1]); in sin()
|
D | s_cosf.c | 38 float y[2]; in cosf() local 75 n = __ieee754_rem_pio2f(x,y); in cosf() 77 case 0: return __kernel_cosdf((double)y[0]+y[1]); in cosf() 78 case 1: return __kernel_sindf(-(double)y[0]-y[1]); in cosf() 79 case 2: return -__kernel_cosdf((double)y[0]+y[1]); in cosf() 81 return __kernel_sindf((double)y[0]+y[1]); in cosf()
|
D | s_sinf.c | 38 float y[2]; in sinf() local 73 n = __ieee754_rem_pio2f(x,y); in sinf() 75 case 0: return __kernel_sindf((double)y[0]+y[1]); in sinf() 76 case 1: return __kernel_cosdf((double)y[0]+y[1]); in sinf() 77 case 2: return __kernel_sindf(-(double)y[0]-y[1]); in sinf() 79 return -__kernel_cosdf((double)y[0]+y[1]); in sinf()
|
D | s_fdim.c | 34 fn(type x, type y) \ 39 if (isnan(y)) \ 40 return (y); \ 41 return (x > y ? x - y : 0.0); \
|
D | s_nexttowardf.c | 25 nexttowardf(float x, long double y) in nexttowardf() argument 33 uy.e = y; in nexttowardf() 38 return x+y; /* x or y is nan */ in nexttowardf() 39 if(x==y) return (float)y; /* x=y, return y */ in nexttowardf() 45 if(hx>=0 ^ x < y) /* x -= ulp */ in nexttowardf() 54 SET_FLOAT_WORD(y,hx); in nexttowardf() 55 return y; in nexttowardf()
|
D | s_fma.c | 53 fma(double x, double y, double z) in fma() argument 64 return (x * y); in fma() 65 if (x == 0.0 || y == 0.0) in fma() 66 return (x * y + z); in fma() 69 if (!isfinite(x) || !isfinite(y) || !isfinite(z)) in fma() 70 return (x * y + z); in fma() 73 ys = frexp(y, &ey); in fma() 88 return (x * y); in fma() 90 if (x > 0.0 ^ y < 0.0 ^ z < 0.0) in fma() 91 return (x * y); in fma() [all …]
|
D | s_remquof.c | 30 remquof(float x, float y, int *quo) in remquof() argument 36 GET_FLOAT_WORD(hy,y); in remquof() 44 return (x*y)/(x*y); in remquof() 107 y = fabsf(y); in remquof() 108 if (y < 0x1p-125f) { in remquof() 109 if (x+x>y || (x+x==y && (q & 1))) { in remquof() 111 x-=y; in remquof() 113 } else if (x>0.5f*y || (x==0.5f*y && (q & 1))) { in remquof() 115 x-=y; in remquof()
|
D | s_fminl.c | 35 fminl(long double x, long double y) in fminl() argument 41 u[1].e = y; in fminl() 46 return (y); in fminl() 52 return (u[1].bits.sign ? y : x); in fminl() 54 return (x < y ? x : y); in fminl()
|
D | s_fmaxl.c | 35 fmaxl(long double x, long double y) in fmaxl() argument 41 u[1].e = y; in fmaxl() 46 return (y); in fmaxl() 52 return (u[0].bits.sign ? y : x); in fmaxl() 54 return (x > y ? x : y); in fmaxl()
|
D | s_nextafterf.c | 24 nextafterf(float x, float y) in nextafterf() argument 30 GET_FLOAT_WORD(hy,y); in nextafterf() 36 return x+y; in nextafterf() 37 if(x==y) return y; /* x=y, return y */ in nextafterf() 61 SET_FLOAT_WORD(y,hx); in nextafterf() 62 return y; in nextafterf()
|
D | s_nexttoward.c | 34 nexttoward(double x, long double y) in nexttoward() argument 43 uy.e = y; in nexttoward() 48 return x+y; /* x or y is nan */ in nexttoward() 49 if(x==y) return (double)y; /* x=y, return y */ in nexttoward() 55 if(hx>0.0 ^ x < y) { /* x -= ulp */ in nexttoward() 67 INSERT_WORDS(y,hx,lx); in nexttoward() 68 return y; in nexttoward()
|
D | s_fmal.c | 44 fmal(long double x, long double y, long double z) in fmal() argument 59 return (x * y); in fmal() 60 if (x == 0.0 || y == 0.0) in fmal() 61 return (x * y + z); in fmal() 64 if (!isfinite(x) || !isfinite(y) || !isfinite(z)) in fmal() 65 return (x * y + z); in fmal() 68 ys = frexpl(y, &ey); in fmal() 83 return (x * y); in fmal() 85 if (x > 0.0 ^ y < 0.0 ^ z < 0.0) in fmal() 86 return (x * y); in fmal() [all …]
|
D | s_expm1.c | 133 double y,hi,lo,c,t,e,hxs,hfx,r1; in expm1() local 139 if(xsb==0) y=x; else y= -x; /* y = |x| */ in expm1() 198 y = one-(e-x); in expm1() 199 GET_HIGH_WORD(high,y); in expm1() 200 SET_HIGH_WORD(y,high+(k<<20)); /* add k to y's exponent */ in expm1() 201 return y-one; in expm1() 207 y = t-(e-x); in expm1() 208 GET_HIGH_WORD(high,y); in expm1() 209 SET_HIGH_WORD(y,high+(k<<20)); /* add k to y's exponent */ in expm1() 213 y = x-(e+t); in expm1() [all …]
|
D | s_expm1f.c | 41 float y,hi,lo,c,t,e,hxs,hfx,r1; in expm1f() local 47 if(xsb==0) y=x; else y= -x; /* y = |x| */ in expm1f() 103 y = one-(e-x); in expm1f() 104 GET_FLOAT_WORD(i,y); in expm1f() 105 SET_FLOAT_WORD(y,i+(k<<23)); /* add k to y's exponent */ in expm1f() 106 return y-one; in expm1f() 112 y = t-(e-x); in expm1f() 113 GET_FLOAT_WORD(i,y); in expm1f() 114 SET_FLOAT_WORD(y,i+(k<<23)); /* add k to y's exponent */ in expm1f() 118 y = x-(e+t); in expm1f() [all …]
|
D | s_fminf.c | 35 fminf(float x, float y) in fminf() argument 40 u[1].f = y; in fminf() 44 return (y); in fminf() 52 return (x < y ? x : y); in fminf()
|
D | s_fmaxf.c | 35 fmaxf(float x, float y) in fmaxf() argument 40 u[1].f = y; in fmaxf() 44 return (y); in fmaxf() 52 return (x > y ? x : y); in fmaxf()
|
/bionic/libc/arch-arm/include/machine/ |
D | asm.h | 53 # define __CONCAT(x,y) x ## y argument 56 # define __CONCAT(x,y) x/**/y argument 93 #define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE argument 94 #define ENTRY_NP(y) _ENTRY(_C_LABEL(y)) argument 95 #define END(y) _END(_C_LABEL(y)) argument 96 #define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE argument 97 #define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y)) argument 98 #define ASEND(y) _END(_ASM_LABEL(y)) argument 101 #define ENTRY_PRIVATE(y) ENTRY(y); .hidden _C_LABEL(y) argument 103 #define ENTRY_PRIVATE(y) ENTRY(y) argument [all …]
|
/bionic/libc/arch-x86/include/machine/ |
D | asm.h | 75 #define CVAROFF(x, y) _C_LABEL(x) + y argument 78 # define __CONCAT(x,y) x ## y argument 81 # define __CONCAT(x,y) x/**/y argument 119 #define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE argument 120 #define NENTRY(y) _ENTRY(_C_LABEL(y)) argument 121 #define END(y) _END(_C_LABEL(y)) argument 122 #define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE argument 124 #define ENTRY_PRIVATE(y) ENTRY(y); .hidden _C_LABEL(y) argument
|
/bionic/libm/bsdsrc/ |
D | b_tgamma.c | 189 double y, ym1, t; local 191 y = x - one; 192 ym1 = y - one; 193 if (y <= 1.0 + (LEFT + x0)) { 194 yy = ratfun_gam(y - x0, 0); 197 r.a = y; 200 y = ym1; 201 yy.b = r.b = y - yy.a; 203 for (ym1 = y-one; ym1 > LEFT + x0; y = ym1--, yy.a--) { 205 r.b = r.a*yy.b + y*r.b; [all …]
|
/bionic/libm/include/ |
D | math.h | 119 #define isgreater(x, y) __builtin_isgreater((x), (y)) argument 120 #define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y)) argument 121 #define isless(x, y) __builtin_isless((x), (y)) argument 122 #define islessequal(x, y) __builtin_islessequal((x), (y)) argument 123 #define islessgreater(x, y) __builtin_islessgreater((x), (y)) argument 124 #define isunordered(x, y) __builtin_isunordered((x), (y)) argument 126 #define isgreater(x, y) (!isunordered((x), (y)) && (x) > (y)) argument 127 #define isgreaterequal(x, y) (!isunordered((x), (y)) && (x) >= (y)) argument 128 #define isless(x, y) (!isunordered((x), (y)) && (x) < (y)) argument 129 #define islessequal(x, y) (!isunordered((x), (y)) && (x) <= (y)) argument [all …]
|