/device/linaro/bootloader/edk2/StdLib/LibC/Math/ |
D | e_acos.c | 79 double z,p,q,r,w,s,c,df; in __ieee754_acos() local 95 z = x*x; in __ieee754_acos() 96 p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); in __ieee754_acos() 97 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos() 102 z = (one+x)*0.5; in __ieee754_acos() 103 p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); in __ieee754_acos() 104 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos() 105 s = __ieee754_sqrt(z); in __ieee754_acos() 111 z = (one-x)*0.5; in __ieee754_acos() 112 s = __ieee754_sqrt(z); in __ieee754_acos() [all …]
|
D | k_cos.c | 68 double a,hz,z,r,qx; in __kernel_cos() local 75 z = x*x; in __kernel_cos() 76 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6))))); in __kernel_cos() 78 return one - (0.5*z - (z*r - x*y)); in __kernel_cos() 85 hz = 0.5*z-qx; in __kernel_cos() 87 return a - (hz - (z*r-x*y)); in __kernel_cos()
|
D | e_rem_pio2.c | 78 double z,w,t,r,fn; in __ieee754_rem_pio2() local 83 z = 0; in __ieee754_rem_pio2() 90 z = x - pio2_1; in __ieee754_rem_pio2() 92 y[0] = z - pio2_1t; in __ieee754_rem_pio2() 93 y[1] = (z-y[0])-pio2_1t; in __ieee754_rem_pio2() 95 z -= pio2_2; in __ieee754_rem_pio2() 96 y[0] = z - pio2_2t; in __ieee754_rem_pio2() 97 y[1] = (z-y[0])-pio2_2t; in __ieee754_rem_pio2() 101 z = x + pio2_1; in __ieee754_rem_pio2() 103 y[0] = z + pio2_1t; in __ieee754_rem_pio2() [all …]
|
D | k_tan.c | 81 double z, r, v, w, s; in __kernel_tan() local 98 z = w = x + y; in __kernel_tan() 99 SET_LOW_WORD(z, 0); in __kernel_tan() 100 v = y - (z - x); in __kernel_tan() 103 s = one + t * z; in __kernel_tan() 114 z = pio4 - x; in __kernel_tan() 116 x = z + w; in __kernel_tan() 119 z = x * x; in __kernel_tan() 120 w = z * z; in __kernel_tan() 128 v = z * (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] + in __kernel_tan() [all …]
|
D | k_sin.c | 61 double z,r,v; in __kernel_sin() local 67 z = x*x; in __kernel_sin() 68 v = z*x; in __kernel_sin() 69 r = S2+z*(S3+z*(S4+z*(S5+z*S6))); in __kernel_sin() 70 if(iy==0) return x+v*(S1+z*r); in __kernel_sin() 71 else return x-((z*(half*y-v*r)-y)-v*S1); in __kernel_sin()
|
D | w_pow.c | 34 double z; in pow() 35 z=__ieee754_pow(x,y); in pow() 36 if(_LIB_VERSION == _IEEE_|| isnan(y)) return z; in pow() 41 return z; in pow() 48 return z; in pow() 50 if(!finite(z)) { in pow() 52 if(isnan(z)) in pow() 58 if(z==0.0&&finite(x)&&finite(y)) in pow() 60 return z; in pow()
|
D | e_pow.c | 120 double z,ax,z_h,z_l,p_h,p_l; in __ieee754_pow() local 182 z = ax; /*x is +-0,+-inf,+-1*/ in __ieee754_pow() 183 if(hy<0) z = one/z; /* z = (1/|x|) */ in __ieee754_pow() 186 z = (z-z)/(z-z); /* (-1)**non-int is NaN */ in __ieee754_pow() 188 z = -z; /* (x<0)**odd = -(|x|**odd) */ in __ieee754_pow() 190 return z; in __ieee754_pow() 278 z = p_l+p_h; in __ieee754_pow() 279 EXTRACT_WORDS(j,i,z); in __ieee754_pow() 284 if(p_l+ovt>z-p_h) return s*huge*huge; /* overflow */ in __ieee754_pow() 290 if(p_l<=z-p_h) return s*tiny*tiny; /* underflow */ in __ieee754_pow() [all …]
|
D | k_rem_pio2.c | 160 double z,fw,f[20],fq[20],q[20]; in __kernel_rem_pio2() local 183 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { in __kernel_rem_pio2() 184 fw = (double)((int32_t)(twon24* z)); in __kernel_rem_pio2() 185 iq[i] = (int32_t)(z-two24*fw); in __kernel_rem_pio2() 186 z = q[j-1]+fw; in __kernel_rem_pio2() 190 z = scalbn(z,q0); /* actual value of z */ in __kernel_rem_pio2() 191 z -= 8.0*floor(z*0.125); /* trim off integer >= 8 */ in __kernel_rem_pio2() 192 n = (int32_t) z; in __kernel_rem_pio2() 193 z -= (double)n; in __kernel_rem_pio2() 201 else if(z>=0.5) ih=2; in __kernel_rem_pio2() [all …]
|
D | e_atan2.c | 64 double z; in __ieee754_atan2() local 113 if(k > 60) z=pi_o_2+0.5*pi_lo; /* |y/x| > 2**60 */ in __ieee754_atan2() 114 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */ in __ieee754_atan2() 115 else z=atan(fabs(y/x)); /* safe to do y/x */ in __ieee754_atan2() 117 case 0: return z ; /* atan(+,+) */ in __ieee754_atan2() 120 GET_HIGH_WORD(zh,z); in __ieee754_atan2() 121 SET_HIGH_WORD(z,zh ^ 0x80000000); in __ieee754_atan2() 123 return z ; /* atan(-,+) */ in __ieee754_atan2() 124 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2() 126 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2()
|
D | s_atan.c | 76 double w,s1,s2,z; in atan() local 110 z = x*x; in atan() 111 w = z*z; in atan() 113 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); in atan() 117 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); in atan() 118 return (hx<0)? -z:z; in atan()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
D | lzio.c | 21 int luaZ_fill (ZIO *z) { in luaZ_fill() argument 23 lua_State *L = z->L; in luaZ_fill() 26 buff = z->reader(L, z->data, &size); in luaZ_fill() 30 z->n = size - 1; /* discount char being returned */ in luaZ_fill() 31 z->p = buff; in luaZ_fill() 32 return cast_uchar(*(z->p++)); in luaZ_fill() 36 void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) { in luaZ_init() argument 37 z->L = L; in luaZ_init() 38 z->reader = reader; in luaZ_init() 39 z->data = data; in luaZ_init() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | cmathmodule.c | 100 #define SPECIAL_VALUE(z, table) \ argument 101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 103 return table[special_type((z).real)] \ 104 [special_type((z).imag)]; \ 127 c_acos(Py_complex z) in c_acos() argument 131 SPECIAL_VALUE(z, acos_special_values); in c_acos() 133 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in c_acos() 135 r.real = atan2(fabs(z.imag), z.real); in c_acos() 138 if (z.real < 0.) { in c_acos() 139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | cmathmodule.c | 100 #define SPECIAL_VALUE(z, table) \ argument 101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 103 return table[special_type((z).real)] \ 104 [special_type((z).imag)]; \ 127 c_acos(Py_complex z) in c_acos() argument 131 SPECIAL_VALUE(z, acos_special_values); in c_acos() 133 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in c_acos() 135 r.real = atan2(fabs(z.imag), z.real); in c_acos() 138 if (z.real < 0.) { in c_acos() 139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() [all …]
|
/device/google/contexthub/firmware/lib/libm/ |
D | kf_cos.c | 38 float a,hz,z,r,qx; local 45 z = x*x; 46 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6))))); 48 return one - ((float)0.5*z - (z*r - x*y)); 55 hz = (float)0.5*z-qx; 57 return a - (hz - (z*r-x*y));
|
D | ef_rem_pio2.c | 105 float z,w,t,r,fn; local 116 z = x - pio2_1; 118 y[0] = z - pio2_1t; 119 y[1] = (z-y[0])-pio2_1t; 121 z -= pio2_2; 122 y[0] = z - pio2_2t; 123 y[1] = (z-y[0])-pio2_2t; 127 z = x + pio2_1; 129 y[0] = z + pio2_1t; 130 y[1] = (z-y[0])+pio2_1t; [all …]
|
D | ef_pow.c | 66 float z,ax,z_h,z_l,p_h,p_l; local 121 z = ax; /*x is +-0,+-inf,+-1*/ 122 if(hy<0) z = one/z; /* z = (1/|x|) */ 125 z = (z-z)/(z-z); /* (-1)**non-int is NaN */ 127 z = -z; /* (x<0)**odd = -(|x|**odd) */ 129 return z; 212 z = p_l+p_h; 213 GET_FLOAT_WORD(j,z); 219 if(p_l+ovt>z-p_h) return s*huge*huge; /* overflow */ 224 if(p_l<=z-p_h) return s*tiny*tiny; /* underflow */ [all …]
|
D | kf_sin.c | 38 float z,r,v; local 44 z = x*x; 45 v = z*x; 46 r = S2+z*(S3+z*(S4+z*(S5+z*S6))); 47 if(iy==0) return x+v*(S1+z*r); 48 else return x-((z*(half*y-v*r)-y)-v*S1);
|
D | kf_rem_pio2.c | 63 float z,fw,f[20],fq[20],q[20]; local 87 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { 88 fw = (float)((__int32_t)(twon8* z)); 89 iq[i] = (__int32_t)(z-two8*fw); 90 z = q[j-1]+fw; 94 z = scalbnf(z,(int)q0); /* actual value of z */ 95 z -= (float)8.0*floorf(z*(float)0.125); /* trim off integer >= 8 */ 96 n = (__int32_t) z; 97 z -= (float)n; 105 else if(z>=(float)0.5) ih=2; [all …]
|
D | ef_atan2.c | 38 float z; local 86 if(k > 60) z=pi_o_2+(float)0.5*pi_lo; /* |y/x| > 2**60 */ 87 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */ 88 else z=atanf(fabsf(y/x)); /* safe to do y/x */ 90 case 0: return z ; /* atan(+,+) */ 93 GET_FLOAT_WORD(zh,z); 94 SET_FLOAT_WORD(z,zh ^ 0x80000000); 96 return z ; /* atan(-,+) */ 97 case 2: return pi-(z-pi_lo);/* atan(+,-) */ 99 return (z-pi_lo)-pi;/* atan(-,-) */
|
/device/google/contexthub/firmware/os/algos/common/math/ |
D | vec.h | 49 float x, y, z; member 53 float x, y, z, w; member 57 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument 61 v->z = z; in initVec3() 70 v->z += w->z; in vec3Add() 81 u->z = v->z + w->z; in vec3AddVecs() 90 v->z -= w->z; in vec3Sub() 101 u->z = v->z - w->z; in vec3SubVecs() 109 v->z *= c; in vec3ScalarMul() 116 return v->x * w->x + v->y * w->y + v->z * w->z; in vec3Dot() [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/gdtoa/ |
D | misc.c | 172 ULong xi, z; local 191 z = (xi >> 16) * m + (y >> 16); 192 carry = z >> 16; 193 *x++ = (z << 16) + (y & 0xffff); 285 ULLong carry, z; local 287 ULong carry, z; local 321 z = *x++ * (ULLong)y + *xc + carry; 322 carry = z >> 32; 324 *xc++ = (uint32_t)(z & 0xffffffffUL); 339 z = (*x & 0xffff) * y + (*xc & 0xffff) + carry; [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ |
D | ATokenBuffer.cpp | 82 _ANTLRTokenPtr *z; in ~ANTLRTokenBuffer() local 83 for (z=buffer; z<=last; z++) in ~ANTLRTokenBuffer() 85 (*z)->deref(); in ~ANTLRTokenBuffer() 89 ((ANTLRCommonToken *)*z)->getText(), (*z)->nref()); in ~ANTLRTokenBuffer() 91 if ( (*z)->nref()==0 ) in ~ANTLRTokenBuffer() 93 delete (*z); in ~ANTLRTokenBuffer() 242 _ANTLRTokenPtr *z; in makeRoom() local 243 for (z=buffer; z<=last-(k-1); z++) in makeRoom() 245 (*z)->deref(); in makeRoom() 249 ((ANTLRCommonToken *)*z)->getText(), (*z)->nref()); in makeRoom() [all …]
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | e_atan2f.c | 35 float z; in __ieee754_atan2f() local 84 z=pi_o_2+(float)0.5*pi_lo; in __ieee754_atan2f() 87 else if(k<-26&&hx<0) z=0.0; /* 0 > |y|/x > -2**-26 */ in __ieee754_atan2f() 88 else z=atanf(fabsf(y/x)); /* safe to do y/x */ in __ieee754_atan2f() 90 case 0: return z ; /* atan(+,+) */ in __ieee754_atan2f() 91 case 1: return -z ; /* atan(-,+) */ in __ieee754_atan2f() 92 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2f() 94 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2f()
|
D | s_atanf.c | 51 float w,s1,s2,z; in atanf() local 82 z = x*x; in atanf() 83 w = z*z; in atanf() 85 s1 = z*(aT[0]+w*(aT[2]+w*aT[4])); in atanf() 89 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); in atanf() 90 return (hx<0)? -z:z; in atanf()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/ |
D | ATokenBuffer.cpp | 83 _ANTLRTokenPtr *z; in ~ANTLRTokenBuffer() local 84 for (z=buffer; z<=last; z++) in ~ANTLRTokenBuffer() 86 (*z)->deref(); in ~ANTLRTokenBuffer() 90 ((ANTLRCommonToken *)*z)->getText(), (*z)->nref()); in ~ANTLRTokenBuffer() 92 if ( (*z)->nref()==0 ) in ~ANTLRTokenBuffer() 94 delete (*z); in ~ANTLRTokenBuffer() 243 _ANTLRTokenPtr *z; in makeRoom() local 244 for (z=buffer; z<=last-(k-1); z++) in makeRoom() 246 (*z)->deref(); in makeRoom() 250 ((ANTLRCommonToken *)*z)->getText(), (*z)->nref()); in makeRoom() [all …]
|