Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 830) sorted by relevance

12345678910>>...34

/picolibc-3.7.0-3.6.0/newlib/libc/include/machine/
Dfastmath.h39 #define sin(x) fast_sin(x) argument
40 #define cos(x) fast_cos(x) argument
41 #define tan(x) fast_tan(x) argument
42 #define asin(x) fast_asin(x) argument
43 #define acos(x) fast_acos(x) argument
44 #define atan(x) fast_atan(x) argument
45 #define sinh(x) fast_sinh(x) argument
46 #define cosh(x) fast_cosh(x) argument
47 #define tanh(x) fast_tanh(x) argument
48 #define asinh(x) fast_asinh(x) argument
[all …]
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.wctype/
Dtiswctype.c8 wctype_t x; in main() local
10 x = wctype ("alpha"); in main()
11 CHECK (x != 0); in main()
12 CHECK (iswctype (L'a', x) && iswalpha (L'a')); in main()
14 x = wctype ("alnum"); in main()
15 CHECK (x != 0); in main()
16 CHECK (iswctype (L'0', x) && iswalnum (L'0')); in main()
18 x = wctype ("blank"); in main()
19 CHECK (x != 0); in main()
20 CHECK (iswctype (L' ', x) && iswblank (L' ')); in main()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/
Dinvtrig.h77 P(long double x) in P() argument
80 return (x * (pS0 + x * (pS1 + x * (pS2 + x * (pS3 + x * \ in P()
81 (pS4 + x * (pS5 + x * (pS6 + x * (pS7 + x * (pS8 + x * \ in P()
86 Q(long double x) in Q() argument
89 return (1.0L + x * (qS1 + x * (qS2 + x * (qS3 + x * (qS4 + x * \ in Q()
90 (qS5 + x * (qS6 + x * (qS7 + x * (qS8 + x * qS9))))))))); in Q()
94 T_even(long double x) in T_even() argument
97 return (aT[0] + x * (aT[2] + x * (aT[4] + x * (aT[6] + x * \ in T_even()
98 (aT[8] + x * (aT[10] + x * (aT[12] + x * (aT[14] + x * \ in T_even()
99 (aT[16] + x * (aT[18] + x * (aT[20] + x * aT[22]))))))))))); in T_even()
[all …]
Ds_log1pl.c124 long double x, y, z, r, s; in log1pl() local
140 x = xm1 + 1.0L; in log1pl()
143 if (x <= 0.0L) in log1pl()
145 if (x == 0.0L) in log1pl()
154 x = frexpl (x, &e); in log1pl()
160 if (x < sqrth) in log1pl()
163 z = x - 0.5L; in log1pl()
168 z = x - 0.5L; in log1pl()
170 y = 0.5L * x + 0.5L; in log1pl()
172 x = z / y; in log1pl()
[all …]
De_log2l.c137 neval (long double x, const long double *p, int n) in neval() argument
145 y = y * x + *p--; in neval()
155 deval (long double x, const long double *p, int n) in deval() argument
160 y = x + *p--; in deval()
163 y = y * x + *p--; in deval()
172 log2l(long double x) in log2l() argument
180 GET_LDOUBLE_WORDS64 (hx, lx, x); in log2l()
184 return __math_invalidl(x); in log2l()
186 return (x + x); in log2l()
193 x = frexpl (x, &e); in log2l()
[all …]
De_log10l.c143 neval (long double x, const long double *p, int n) in neval() argument
151 y = y * x + *p--; in neval()
161 deval (long double x, const long double *p, int n) in deval() argument
166 y = x + *p--; in deval()
169 y = y * x + *p--; in deval()
178 log10l(long double x) in log10l() argument
186 GET_LDOUBLE_WORDS64 (hx, lx, x); in log10l()
190 return __math_invalidl(x); in log10l()
192 return (x + x); in log10l()
199 x = frexpl (x, &e); in log10l()
[all …]
Ds_expm1l.c91 expm1l(long double x) in expm1l() argument
99 u.value = x; in expm1l()
112 return x; in expm1l()
115 return x + x; in expm1l()
120 return x; in expm1l()
123 if (x > maxlog) in expm1l()
127 if (x < minarg) in expm1l()
132 px = floorl (0.5L + x / xx); in expm1l()
135 x -= px * C1; in expm1l()
136 x -= px * C2; in expm1l()
[all …]
De_expl.c111 expl(long double x) in expl() argument
116 if( isnan(x) ) in expl()
117 return(x + x); in expl()
118 if( x > MAXLOGL) { in expl()
119 if (isinf(x)) in expl()
120 return x; in expl()
124 if( x < MINLOGL ) { in expl()
125 if (isinf(x)) in expl()
134 px = floorl( LOG2EL * x + 0.5L ); /* floor() truncates toward -infinity. */ in expl()
136 x += px * C1; in expl()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/arm/machine/
Dmath.h62 sqrt(double x) in sqrt() argument
66 if (isless(x, 0.0)) in sqrt()
70 __asm__ volatile ("vsqrt.f64 %P0, %P1" : "=w" (result) : "w" (x)); in sqrt()
73 __asm__ volatile ("vsqrt.f64 %P0, %P1" : "=&w" (result) : "w" (x)); in sqrt()
79 fabs(double x) in fabs() argument
82 __asm__ ("vabs.f64\t%P0, %P1" : "=w" (result) : "w" (x)); in fabs()
88 ceil (double x) in ceil() argument
91 __asm__ volatile ( "vrintp.f64\t%P0, %P1" : "=w" (result) : "w" (x) ); in ceil()
96 floor (double x) in floor() argument
99 __asm__ volatile ("vrintm.f64\t%P0, %P1" : "=w" (result) : "w" (x)); in floor()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Dsimdmath.h76 vector signed int absi4(vector signed int x);
77 vector float acosf4(vector float x);
78 vector float acoshf4(vector float x);
79 vector float asinf4(vector float x);
80 vector float asinhf4(vector float x);
81 vector float atanf4(vector float x);
82 vector float atanhf4(vector float x);
83 vector float atan2f4(vector float y, vector float x);
84 vector float cbrtf4(vector float x);
85 vector float ceilf4(vector float x);
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/
De_log2l.c115 log2l(long double x) in log2l() argument
121 if( isnan(x) ) in log2l()
122 return(x + x); in log2l()
124 if( x <= 0.0L ) in log2l()
126 if( x == 0.0L ) in log2l()
129 return __math_invalidl(x); in log2l()
132 if( isinf(x) ) in log2l()
133 return(x); in log2l()
140 x = frexpl( x, &e ); in log2l()
148 if( x < SQRTH ) in log2l()
[all …]
De_tgammal.c184 static long double stirf(long double x) in stirf() argument
188 w = 1.0L/x; in stirf()
190 if( x > 1024.0L ) in stirf()
200 y = expl(x); in stirf()
201 if( x > MAXSTIR ) in stirf()
203 v = powl( x, 0.5L * x - 0.25L ); in stirf()
208 y = powl( x, x - 0.5L ) / y; in stirf()
215 tgammal(long double x) in tgammal() argument
220 if( isnan(x) ) in tgammal()
221 return(x + x); in tgammal()
[all …]
Ds_expm1l.c88 expm1l(long double x) in expm1l() argument
93 if( isnan(x) ) in expm1l()
94 return(x + x); in expm1l()
97 if (x > MAXLOGL) { in expm1l()
98 if (isinf(x)) in expm1l()
99 return x; in expm1l()
103 if (x == 0.0l) in expm1l()
104 return x; in expm1l()
107 if (x < minarg) { in expm1l()
108 if (isinf(x)) in expm1l()
[all …]
De_logl.c115 logl(long double x) in logl() argument
120 if( isnan(x) ) in logl()
121 return(x + x); in logl()
122 if( x == (long double) INFINITY ) in logl()
123 return(x); in logl()
125 if( x <= 0.0L ) in logl()
127 if( x == 0.0L ) in logl()
130 return __math_invalidl(x); in logl()
138 x = frexpl( x, &e ); in logl()
145 if( x < SQRTH ) in logl()
[all …]
De_log10l.c120 log10l(long double x) in log10l() argument
126 if( isnan(x) ) in log10l()
127 return(x + x); in log10l()
129 if( x <= 0.0L ) in log10l()
131 if( x == 0.0L ) in log10l()
134 return __math_invalidl(x); in log10l()
136 if( x == (long double) INFINITY ) in log10l()
143 x = frexpl( x, &e ); in log10l()
151 if( x < SQRTH ) in log10l()
154 z = x - 0.5L; in log10l()
[all …]
Ds_log1pl.c114 long double x, y, z; in log1pl() local
124 x = xm1 + 1.0L; in log1pl()
127 if( x <= 0.0L ) in log1pl()
129 if( x == 0.0L ) in log1pl()
137 x = frexpl( x, &e ); in log1pl()
143 if( x < SQRTH ) in log1pl()
146 z = x - 0.5L; in log1pl()
151 z = x - 0.5L; in log1pl()
153 y = 0.5L * x + 0.5L; in log1pl()
155 x = z / y; in log1pl()
[all …]
De_expl.c95 expl(long double x) in expl() argument
100 if( isnan(x) ) in expl()
101 return(x + x); in expl()
102 if( x > MAXLOGL) { in expl()
103 if (isinf(x)) in expl()
104 return x; in expl()
108 if( x < MINLOGL ) { in expl()
109 if (isinf(x)) in expl()
118 px = floorl( LOG2EL * x + 0.5L ); /* floor() truncates toward -infinity. */ in expl()
120 x -= px * C1; in expl()
[all …]
De_powl.c186 powl(long double x, long double y) in powl() argument
194 if (issignalingl_inline(x)) in powl()
195 return x + y; in powl()
199 if( !isnanl_inline(x) && x == 1.0L ) { in powl()
201 return x + y; in powl()
205 if( isnanl_inline(x) ) in powl()
206 return( x + y ); in powl()
208 return( x + y ); in powl()
215 nflg = signbit(x); in powl()
225 if( x == 0.0L) { in powl()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/include/sys/
Dendian.h59 #define bswap16(x) __bswap16(x) argument
60 #define bswap32(x) __bswap32(x) argument
61 #define bswap64(x) __bswap64(x) argument
68 #define htobe16(x) bswap16((x)) argument
69 #define htobe32(x) bswap32((x)) argument
70 #define htobe64(x) bswap64((x)) argument
71 #define htole16(x) ((uint16_t)(x)) argument
72 #define htole32(x) ((uint32_t)(x)) argument
73 #define htole64(x) ((uint64_t)(x)) argument
75 #define be16toh(x) bswap16((x)) argument
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/include/
Dinttypes.h31 #define __PRI8(x) __INT8 __STRINGIFY(x) argument
32 #define __PRI8LEAST(x) __LEAST8 __STRINGIFY(x) argument
33 #define __PRI8FAST(x) __FAST8 __STRINGIFY(x) argument
46 #define __SCN8(x) __INT8 __STRINGIFY(x) argument
47 #define __SCN8LEAST(x) __LEAST8 __STRINGIFY(x) argument
48 #define __SCN8FAST(x) __FAST8 __STRINGIFY(x) argument
56 #define PRIx8 __PRI8(x)
66 #define SCNx8 __SCN8(x)
75 #define PRIxLEAST8 __PRI8LEAST(x)
85 #define SCNxLEAST8 __SCN8LEAST(x)
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/math/
Ds_remainder.c30 remainder64(__float64 x, __float64 p) in remainder64() argument
36 EXTRACT_WORDS(hx, lx, x); in remainder64()
43 if (isnan(x) || isnan(p)) in remainder64()
44 return x + p; in remainder64()
46 if (isinf(x) || (hp | lp) == 0) in remainder64()
47 return __math_invalid(x); in remainder64()
50 return (x * p) / (x * p); /* p = 0 */ in remainder64()
53 x = fmod(x, p + p); /* now x < 2p */ in remainder64()
56 return zero * x; in remainder64()
57 x = fabs64(x); in remainder64()
[all …]
Dsf_remainder.c21 remainderf(float x, float p) in remainderf() argument
27 GET_FLOAT_WORD(hx, x); in remainderf()
35 return x + p; in remainderf()
37 if (isinf(x) || hp == 0) in remainderf()
38 return __math_invalidf(x); in remainderf()
41 x = fmodf(x, p + p); /* now x < 2p */ in remainderf()
43 return zero * x; in remainderf()
44 x = fabsf(x); in remainderf()
47 if (x + x > p) { in remainderf()
48 x -= p; in remainderf()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/riscv/machine/
Dmath.h107 copysign(double x, double y) in copysign() argument
110 __asm__("fsgnj.d\t%0, %1, %2" : "=f" (result) : "f" (x), "f" (y)); in copysign()
115 fabs(double x) in fabs() argument
118 __asm__("fabs.d\t%0, %1" : "=f"(result) : "f"(x)); in fabs()
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()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/m68hc11/
Dsetjmp.S38 std 0,x
39 sty 2,x
41 std 4,x
43 std 6,x
45 std 8,x
47 std 10,x
49 std 12,x
51 std 14,x
53 std 16,x
55 std 18,x
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Dmath_config.h70 # define likely(x) __builtin_expect (!!(x), 1) argument
71 # define unlikely(x) __builtin_expect (x, 0) argument
73 # define likely(x) (x) argument
74 # define unlikely(x) (x) argument
104 roundtoint (double_t x) in roundtoint() argument
106 return round (x); in roundtoint()
113 converttoint (double_t x) in converttoint() argument
116 return lround (x); in converttoint()
118 return (long) round (x); in converttoint()
200 issignalingf_inline (float x) in issignalingf_inline() argument
[all …]

12345678910>>...34