Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 157) sorted by relevance

1234567

/picolibc-latest/newlib/libm/ld/ld128/
Dk_tanl.c63 long double z, r, v, w, s; in __kernel_tanl() local
75 w = pio4lo - y; in __kernel_tanl()
76 x = z + w; in __kernel_tanl()
82 w = z * z; in __kernel_tanl()
83 r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 + in __kernel_tanl()
84 w * (T25 + w * (T29 + w * (T33 + in __kernel_tanl()
85w * (T37 + w * ((long double)T41 + w * ((long double)T45 + w * ((long double)T49 + w * ((long doub… in __kernel_tanl()
86 w * (long double)T57)))))))))))); in __kernel_tanl()
87 v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 + in __kernel_tanl()
88 w * (T27 + w * (T31 + w * (T35 + in __kernel_tanl()
[all …]
De_rem_pio2l.h63 long double z,w,t,r,fn; in __ieee754_rem_pio2l() local
83 w = fn*pio2_1t; /* 1st round good to 180 bit */ in __ieee754_rem_pio2l()
88 y[0] = r-w; in __ieee754_rem_pio2l()
94 w = fn*pio2_2; in __ieee754_rem_pio2l()
95 r = t-w; in __ieee754_rem_pio2l()
96 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2l()
97 y[0] = r-w; in __ieee754_rem_pio2l()
103 w = fn*pio2_3; in __ieee754_rem_pio2l()
104 r = t-w; in __ieee754_rem_pio2l()
105 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2l()
[all …]
/picolibc-latest/newlib/libc/machine/v850/
Dsetjmp.S25 st.w r1,0[r6]
26 st.w r3,4[r6]
27 st.w r4,8[r6]
28 st.w r20,12[r6]
29 st.w r21,16[r6]
30 st.w r22,20[r6]
31 st.w r23,24[r6]
32 st.w r24,28[r6]
33 st.w r25,32[r6]
34 st.w r26,36[r6]
[all …]
/picolibc-latest/newlib/libc/machine/h8500/
Dcmpsi.c26 } w; member
36 } w; member
47 if (u.w.msw != msw_b) in __cmpsi2()
49 if (u.w.msw < msw_b) return 0; in __cmpsi2()
52 if (u.w.lsw != lsw_b) in __cmpsi2()
54 if (u.w.lsw < lsw_b) return 0; in __cmpsi2()
68 if (u.w.msw != msw_b) in __ucmpsi2()
70 if (u.w.msw < msw_b) return 0; in __ucmpsi2()
73 if (u.w.lsw != lsw_b) in __ucmpsi2()
75 if (u.w.lsw < lsw_b) return 0; in __ucmpsi2()
[all …]
Dsetjmp.S25 mov.w r7,@r0+
26 mov.w r6,@r0+
27 mov.w r5,@r0+
28 mov.w @sp,r1
29 mov.w r1,@r0
30 clr.w r0
35 mov.w @r0+,r7
36 mov.w @r0+,r6
37 mov.w @r0+,r5
38 mov.w @r0,r2
[all …]
Ddivhi3.S38 clr.w r0
39 tst.w r1 ! neg arg1
43 neg.w r1
44 NU: tst.w r4
47 NP: divxu.w r4,r0
48 neg.w r0
49 neg.w r1
52 NN: neg.w r4
53 divxu.w r4,r0
54 neg.w r0 ! get rem sign right
[all …]
/picolibc-latest/newlib/libm/common/
Dsf_fpclassify.c14 __uint32_t w; in __fpclassifyf() local
16 GET_FLOAT_WORD(w,x); in __fpclassifyf()
18 if (w == 0x00000000 || w == 0x80000000) in __fpclassifyf()
20 else if ((w >= 0x00800000 && w <= 0x7f7fffff) || in __fpclassifyf()
21 (w >= 0x80800000 && w <= 0xff7fffff)) in __fpclassifyf()
23 else if ((w >= 0x00000001 && w <= 0x007fffff) || in __fpclassifyf()
24 (w >= 0x80000001 && w <= 0x807fffff)) in __fpclassifyf()
26 else if (w == 0x7f800000 || w == 0xff800000) in __fpclassifyf()
Dsf_round.c17 __uint32_t w; in roundf() local
21 GET_FLOAT_WORD(w, x); in roundf()
24 exponent_less_127 = (int)((w & 0x7f800000) >> 23) - 127; in roundf()
30 w &= 0x80000000; in roundf()
33 w |= ((__uint32_t)127 << 23); in roundf()
38 if ((w & exponent_mask) == 0) in roundf()
42 w += 0x00400000 >> exponent_less_127; in roundf()
43 w &= ~exponent_mask; in roundf()
54 SET_FLOAT_WORD(x, w); in roundf()
Dsf_llround.c20 __uint32_t w; in llroundf() local
24 GET_FLOAT_WORD (w, x); in llroundf()
25 exponent_less_127 = ((w & 0x7f800000) >> 23) - 127; in llroundf()
26 sign = (w & 0x80000000) != 0 ? -1 : 1; in llroundf()
27 w &= 0x7fffff; in llroundf()
28 w |= 0x800000; in llroundf()
35 result = (long long int) w << (exponent_less_127 - 23); in llroundf()
38 w += 0x400000 >> exponent_less_127; in llroundf()
39 result = w >> (23 - exponent_less_127); in llroundf()
Dsf_lround.c18 __uint32_t w; in lroundf() local
22 GET_FLOAT_WORD (w, x); in lroundf()
23 exponent_less_127 = ((w & 0x7f800000) >> 23) - 127; in lroundf()
24 sign = (w & 0x80000000) != 0 ? -1 : 1; in lroundf()
25 w &= 0x7fffff; in lroundf()
26 w |= 0x800000; in lroundf()
33 result = (long int) w << (exponent_less_127 - 23); in lroundf()
36 w += 0x400000 >> exponent_less_127; in lroundf()
37 result = w >> (23 - exponent_less_127); in lroundf()
/picolibc-latest/newlib/libc/stdio/
Dfvwrite.c58 register ssize_t w, s; in _sfvwrite() local
123 w = fp->_write (fp->_cookie, p, in _sfvwrite()
125 if (w <= 0) in _sfvwrite()
127 p += w; in _sfvwrite()
128 len -= w; in _sfvwrite()
130 while ((uio->uio_resid -= w) != 0); in _sfvwrite()
150 w = fp->_w; in _sfvwrite()
153 if (len >= (size_t) w && fp->_flags & (__SMBF | __SOPT)) in _sfvwrite()
197 w = len; in _sfvwrite()
200 if (len < (size_t) w) in _sfvwrite()
[all …]
/picolibc-latest/newlib/libm/ld/ld80/
Dk_tanl.c71 long double z, r, v, w, s; in __kernel_tanl() local
83 w = pio4lo - y; in __kernel_tanl()
84 x = z + w; in __kernel_tanl()
90 w = z * z; in __kernel_tanl()
91 …r = T5 + w * ((long double)T9 + w * ((long double)T13 + w * ((long double)T17 + w * ((long double)… in __kernel_tanl()
92 w * ((long double)T25 + w * ((long double)T29 + w * (long double)T33)))))); in __kernel_tanl()
93 …v = z * ((long double)T7 + w * ((long double)T11 + w * ((long double)T15 + w * ((long double)T19 +… in __kernel_tanl()
94 w * ((long double)T27 + w * (long double)T31)))))); in __kernel_tanl()
98 w = x + r; in __kernel_tanl()
102 (v - 2.0L * (x - (w * w / (w + v) - r))); in __kernel_tanl()
[all …]
De_powl.c188 long double w, ya, yb, z; in powl() local
210 w = floorl(y); in powl()
212 iyflg = (w == y); in powl()
329 w = floorl(x); in powl()
330 if( (w == x) && (fabsl(y) < 32768.0L) ) in powl()
332 w = powil( x, (int) y ); in powl()
333 return( w ); in powl()
377 w = x * ( z * __polevll( x, P, 3 ) / __p1evll( x, Q, 3 ) ); in powl()
378 w = w - ldexpl( z, -1 ); /* w - 0.5 * z */ in powl()
383 z = LOG2EA * w; in powl()
[all …]
De_rem_pio2l.h75 long double z,w,t,r,fn; in __ieee754_rem_pio2l() local
94 w = fn*pio2_1t; /* 1st round good to 102 bit */ in __ieee754_rem_pio2l()
99 y[0] = r-w; in __ieee754_rem_pio2l()
105 w = fn*(long double)pio2_2; in __ieee754_rem_pio2l()
106 r = t-w; in __ieee754_rem_pio2l()
107 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2l()
108 y[0] = r-w; in __ieee754_rem_pio2l()
114 w = fn*(long double)pio2_3; in __ieee754_rem_pio2l()
115 r = t-w; in __ieee754_rem_pio2l()
116 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2l()
[all …]
/picolibc-latest/newlib/libm/math/
Dkf_tan.c39 float z, r, v, w, s; in __kernel_tanf() local
58 w = pio4lo - y; in __kernel_tanf()
59 x = z + w; in __kernel_tanf()
63 w = z * z; in __kernel_tanf()
68 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + w * T[11])))); in __kernel_tanf()
70 (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] + w * T[12]))))); in __kernel_tanf()
74 w = x + r; in __kernel_tanf()
78 (v - (float)2.0 * (x - (w * w / (w + v) - r))); in __kernel_tanf()
81 return w; in __kernel_tanf()
87 z = w; in __kernel_tanf()
[all …]
Dk_tan.c75 __float64 z, r, v, w, s; in __kernel_tan() local
90 z = w = x + y; in __kernel_tan()
93 t = a = -one / w; in __kernel_tan()
107 w = pio4lo - y; in __kernel_tan()
108 x = z + w; in __kernel_tan()
112 w = z * z; in __kernel_tan()
117 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + w * T[11])))); in __kernel_tan()
119 (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] + w * T[12]))))); in __kernel_tan()
123 w = x + r; in __kernel_tan()
127 (v - _F_64(2.0) * (x - (w * w / (w + v) - r))); in __kernel_tan()
[all …]
Dsf_atan.c52 float w, s1, s2, z; in atanf() local
93 w = z * z; in atanf()
97 w * (aT[2] + w * (aT[4] + w * (aT[6] + w * (aT[8] + w * aT[10]))))); in atanf()
98 s2 = w * (aT[1] + w * (aT[3] + w * (aT[5] + w * (aT[7] + w * aT[9])))); in atanf()
Dsf_asin.c37 float t, w, p, q, c, r, s; in asinf() local
55 w = p / q; in asinf()
56 return x + x * w; in asinf()
60 w = one - fabsf(x); in asinf()
61 t = w * (float)0.5; in asinf()
66 w = p / q; in asinf()
67 t = pio2_hi - ((float)2.0 * (s + s * w) - pio2_lo); in asinf()
70 w = s; in asinf()
71 GET_FLOAT_WORD(iw, w); in asinf()
72 SET_FLOAT_WORD(w, iw & 0xfffff000); in asinf()
[all …]
/picolibc-latest/newlib/libc/include/sys/
D_wait.h46 #define WIFEXITED(w) (((w) & 0xff) == 0) argument
47 #define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f)) argument
48 #define WIFSTOPPED(w) (((w) & 0xff) == 0x7f) argument
49 #define WEXITSTATUS(w) (((w) >> 8) & 0xff) argument
50 #define WTERMSIG(w) ((w) & 0x7f) argument
/picolibc-latest/newlib/libc/machine/msp430/
Dsetjmp.S52 mov.w @r1, r13
53 mov.w r13, 0(r12)
54 mov.w r1, 2(r12)
55 mov.w r4, 4(r12)
56 mov.w r5, 6(r12)
57 mov.w r6, 8(r12)
58 mov.w r7, 10(r12)
59 mov.w r8, 12(r12)
60 mov.w r9, 14(r12)
61 mov.w r10, 16(r12)
[all …]
/picolibc-latest/newlib/libm/complex/
Dcsqrtf.c41 float complex w; in csqrtf() local
49 w = 0.0f + sqrtf(-x) * I; in csqrtf()
50 return w; in csqrtf()
54 w = sqrtf(x) + y * I; in csqrtf()
55 return w; in csqrtf()
63 w = r + r * I; in csqrtf()
65 w = r - r * I; in csqrtf()
66 return w; in csqrtf()
85 w = x + y * I; in csqrtf()
86 r = cabsf(w); in csqrtf()
[all …]
Dcsqrt.c76 double complex w; in csqrt() local
84 w = 0.0 + y * (double complex) I; in csqrt()
89 w = 0.0 + r * (double complex) I; in csqrt()
91 w = r + y * (double complex) I; in csqrt()
94 return w; in csqrt()
100 w = r + r * (double complex) I; in csqrt()
102 w = r - r * (double complex) I; in csqrt()
103 return w; in csqrt()
121 w = x + y * (double complex) I; in csqrt()
122 r = cabs(w); in csqrt()
[all …]
/picolibc-latest/newlib/libc/machine/h8300/
Dsetjmp.S43 mov.w r7,@r0
44 mov.w r6,@(2,r0)
45 mov.w r5,@(4,r0)
46 mov.w r4,@(6,r0)
47 mov.w @sp,r1
48 mov.w r1,@(8,r0)
49 sub.w r0,r0
67 mov.w r1,r0
75 mov.w @r0+,r7
76 mov.w @r0+,r6
[all …]
/picolibc-latest/newlib/libc/machine/necv70/
Dsetjmp.S21 mov.w [ap],r0
27 mov.w -0x4[ap],[r0+]
28 mov.w fp,[r0+]
29 mov.w ap,[r0+]
30 mov.w -0x8[ap],[r0]
31 xor.w r0,r0
36 mov.w 0x4[ap],r0
37 mov.w [ap],r1
44 mov.w [r1+],sp
45 test.w r0
[all …]
/picolibc-latest/newlib/libm/ld/common/
De_asinl.c32 long double t=0.0L,w,p,q,c,r,s; in asinl() local
49 w = p/q; in asinl()
50 return x+x*w; in asinl()
53 w = one-fabsl(x); in asinl()
54 t = w*0.5L; in asinl()
59 w = p/q; in asinl()
60 t = pio2_hi-(2.0L*(s+s*w)-pio2_lo); in asinl()
64 w = u.e; in asinl()
65 c = (t-w*w)/(s+w); in asinl()
68 q = pio4_hi-2.0L*w; in asinl()

1234567