Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 215) sorted by relevance

123456789

/picolibc-3.7.0-3.6.0/newlib/libm/math/
Dsf_asin.c37 float t, w, p, q, c, r, s; in asinf() local
51 t = x * x; in asinf()
52 p = t * in asinf()
53 (pS0 + t * (pS1 + t * (pS2 + t * (pS3 + t * (pS4 + t * pS5))))); in asinf()
54 q = one + t * (qS1 + t * (qS2 + t * (qS3 + t * qS4))); in asinf()
61 t = w * (float)0.5; in asinf()
62 p = t * (pS0 + t * (pS1 + t * (pS2 + t * (pS3 + t * (pS4 + t * pS5))))); in asinf()
63 q = one + t * (qS1 + t * (qS2 + t * (qS3 + t * qS4))); in asinf()
64 s = sqrtf(t); in asinf()
67 t = pio2_hi - ((float)2.0 * (s + s * w) - pio2_lo); in asinf()
[all …]
Ds_asin.c69 __float64 t, w, p, q, c, r, s; in asin64() local
85 t = x * x; in asin64()
86 p = t * in asin64()
87 (pS0 + t * (pS1 + t * (pS2 + t * (pS3 + t * (pS4 + t * pS5))))); in asin64()
88 q = one + t * (qS1 + t * (qS2 + t * (qS3 + t * qS4))); in asin64()
95 t = w * _F_64(0.5); in asin64()
96 p = t * (pS0 + t * (pS1 + t * (pS2 + t * (pS3 + t * (pS4 + t * pS5))))); in asin64()
97 q = one + t * (qS1 + t * (qS2 + t * (qS3 + t * qS4))); in asin64()
98 s = sqrt(t); in asin64()
101 t = pio2_hi - (_F_64(2.0) * (s + s * w) - pio2_lo); in asin64()
[all …]
Dsf_sinh.c23 float t, w, h; in sinhf() local
41 t = expm1f(fabsf(x)); in sinhf()
43 return h * ((float)2.0 * t - t * t / (t + one)); in sinhf()
44 return h * (t + t / (t + one)); in sinhf()
54 t = h * w; in sinhf()
55 return t * w; in sinhf()
Dsf_cosh.c28 float t, w; in coshf() local
42 t = expm1f(x); in coshf()
43 w = one + t; in coshf()
46 return one + (t * t) / (w + w); in coshf()
51 t = expf(x); in coshf()
52 return half * t + half / t; in coshf()
62 t = half * w; in coshf()
63 return t * w; in coshf()
Ds_sinh.c41 __float64 t, w, h; in sinh64() local
61 t = expm164(fabs64(x)); in sinh64()
63 return h * (_F_64(2.0) * t - t * t / (t + one)); in sinh64()
64 return h * (t + t / (t + one)); in sinh64()
75 t = h * w; in sinh64()
76 return t * w; in sinh64()
Ds_cosh.c44 __float64 t, w; in cosh64() local
60 t = expm1(x); in cosh64()
61 w = one + t; in cosh64()
64 return one + (t * t) / (w + w); in cosh64()
69 t = exp(x); in cosh64()
70 return half * t + half / t; in cosh64()
81 t = half * w; in cosh64()
82 return t * w; in cosh64()
Dsf_acosh.c24 float t; in acoshf() local
37 t = x * x; in acoshf()
38 return logf((float)2.0 * x - one / (x + sqrtf(t - one))); in acoshf()
40 t = x - one; in acoshf()
41 return log1pf(t + sqrtf((float)2.0 * t + t * t)); in acoshf()
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Ds_cbrt.c61 __float64 r,s,t=_F_64(0.0),w; in cbrt64() local
76 {SET_HIGH_WORD(t,0x43500000); /* set t= 2**54 */ in cbrt64()
77 t*=x; GET_HIGH_WORD(high,t); SET_HIGH_WORD(t,high/3+B2); in cbrt64()
80 SET_HIGH_WORD(t,hx/3+B1); in cbrt64()
84 r=t*t/x; in cbrt64()
85 s=C+r*t; in cbrt64()
86 t*=G+F/(s+E+D/s); in cbrt64()
89 GET_HIGH_WORD(high,t); in cbrt64()
90 INSERT_WORDS(t,high+0x00000001,0); in cbrt64()
94 s=t*t; /* t*t is exact */ in cbrt64()
[all …]
Dsf_cbrt.c49 float r,s,t; local
64 {SET_FLOAT_WORD(t,0x4b800000); /* set t= 2**24 */
65 t*=x; GET_FLOAT_WORD(high,t); SET_FLOAT_WORD(t,high/3+B2);
68 SET_FLOAT_WORD(t,hx/3+B1);
72 r=t*t/x;
73 s=C+r*t;
74 t*=G+F/(s+E+D/s);
77 GET_FLOAT_WORD(high,t);
78 SET_FLOAT_WORD(t,high|sign);
79 return(t);
/picolibc-3.7.0-3.6.0/newlib/libm/complex/
Dcephes_subr.c70 double t; in _redupi() local
73 t = x / M_PI; in _redupi()
74 if (t >= 0.0) in _redupi()
75 t += 0.5; in _redupi()
77 t -= 0.5; in _redupi()
79 i = t; /* the multiple */ in _redupi()
80 t = i; in _redupi()
81 t = ((x - t * DP1) - t * DP2) - t * DP3; in _redupi()
82 return t; in _redupi()
90 double f, x, x2, y, y2, rn, t; in _ctans() local
[all …]
Dcephes_subrf.c70 float t; in _redupif() local
73 t = x / (float)M_PI; in _redupif()
74 if (t >= 0.0f) in _redupif()
75 t += 0.5f; in _redupif()
77 t -= 0.5f; in _redupif()
79 i = t; /* the multiple */ in _redupif()
80 t = i; in _redupif()
81 t = (((double) x - (double) t * DP1) - (double) t * DP2) - (double) t * DP3; in _redupif()
82 return t; in _redupif()
90 float f, x, x2, y, y2, rn, t, d; in _ctansf() local
[all …]
Dcephes_subrl.c72 long double t; in _redupil() local
75 t = x / M_PIL; in _redupil()
76 if (t >= 0.0L) in _redupil()
77 t += 0.5L; in _redupil()
79 t -= 0.5L; in _redupil()
81 i = t; /* the multiple */ in _redupil()
82 t = i; in _redupil()
83 t = ((x - t * DP1) - t * DP2) - t * DP3; in _redupil()
84 return t; in _redupil()
92 long double f, x, x2, y, y2, rn, t; in _ctansl() local
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dspu_timer_stop.c44 spu_timer_t *t, **pn; in spu_timer_stop() local
62 t = (__spu_timers[id].state == SPU_TIMER_ACTIVE) in spu_timer_stop()
68 while (t && t->id != id) in spu_timer_stop()
70 pn = &t->next; in spu_timer_stop()
71 t = t->next; in spu_timer_stop()
74 if (!t) in spu_timer_stop()
79 if (t->next) in spu_timer_stop()
81 t->next->tmout += t->tmout; in spu_timer_stop()
82 if (__spu_timers_active == t) in spu_timer_stop()
83 __reset_spu_decr (t->next->tmout); in spu_timer_stop()
[all …]
Dspu_timer_free.c47 spu_timer_t *t, **pn; in spu_timer_free() local
59 t = __spu_timers_stopped; in spu_timer_free()
62 while (t && (t->id != id)) in spu_timer_free()
64 pn = &t->next; in spu_timer_free()
65 t = t->next; in spu_timer_free()
68 if (!t) in spu_timer_free()
71 *pn = t->next; in spu_timer_free()
/picolibc-3.7.0-3.6.0/test/
Dt_fmemopen.c446 struct testcase *t; in ATF_TC_BODY() local
452 for (t = &testcases[0]; t->s != NULL; ++t) { in ATF_TC_BODY()
455 memcpy(&buf[0], t->s, t->n); in ATF_TC_BODY()
456 fp = fmemopen(&buf[0], t->n, *p); in ATF_TC_BODY()
467 for (i = (off_t)1; i <= (off_t)t->n; ++i) { in ATF_TC_BODY()
472 ATF_CHECK(ftello(fp) == t->n); in ATF_TC_BODY()
479 ATF_CHECK(fseeko(fp, t->n + 1, SEEK_SET) == -1); in ATF_TC_BODY()
480 ATF_CHECK(ftello(fp) == t->n); in ATF_TC_BODY()
484 ATF_CHECK(ftello(fp) == t->n); in ATF_TC_BODY()
504 struct testcase *t; in ATF_TC_BODY() local
[all …]
Dtest-fma.c168 unsigned int t; in test_fmaf() local
176 for (t = 0; t < NUM_FMAF_VEC; t++) { in test_fmaf()
177 float x = fmaf_vec[t].x; in test_fmaf()
178 float y = fmaf_vec[t].y; in test_fmaf()
179 float z = fmaf_vec[t].z; in test_fmaf()
181 float s = fmaf_vec[t].r[rounding_map[ro]]; in test_fmaf()
189 t, rounding_names[ro], in test_fmaf()
232 unsigned int t; in test_fma() local
240 for (t = 0; t < NUM_FMA_VEC; t++) { in test_fma()
241 double x = fma_vec[t].x; in test_fma()
[all …]
Dregex.c76 unsigned t; in main() local
84 for (t = 0; t < NTEST; t++) { in main()
85 ret = regcomp(&regex, tests[t].pattern, REG_EXTENDED); in main()
87 printf("expression \"%s\" failed to compile: %d\n", tests[t].pattern, ret); in main()
91 ret = regexec(&regex, tests[t].string, MAX_MATCH, matches, 0); in main()
93 if (ret != tests[t].ret) { in main()
95 tests[t].pattern, tests[t].string, ret, tests[t].ret); in main()
101 if (m < tests[t].nmatch) { in main()
102 if (matches[m].rm_so != tests[t].matches[m].rm_so || in main()
103 matches[m].rm_eo != tests[t].matches[m].rm_eo) { in main()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/ld/common/
Ds_roundl.c34 long double t; in roundl() local
40 t = floorl(x); in roundl()
41 if (t - x <= -0.5L) in roundl()
42 t += 1.0L; in roundl()
43 return (t); in roundl()
45 t = floorl(-x); in roundl()
46 if (t + x <= -0.5L) in roundl()
47 t += 1.0L; in roundl()
48 return (-t); in roundl()
De_asinl.c33 long double t=0.0L,w,p,q,c,r,s; in asinl() local
47 t = x*x; in asinl()
48 p = P(t); in asinl()
49 q = Q(t); in asinl()
55 t = w*0.5L; in asinl()
56 p = P(t); in asinl()
57 q = Q(t); in asinl()
58 s = sqrtl(t); in asinl()
61 t = pio2_hi-(2.0L*(s+s*w)-pio2_lo); in asinl()
66 c = (t-w*w)/(s+w); in asinl()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/
De_sinhl.c38 long double t,w,h; in sinhl() local
54 t = expm1l(fabsl(x)); in sinhl()
55 if(ix<0x3fff) return h*(2.0l*t-t*t/(t+one)); in sinhl()
56 return h*(t+t/(t+one)); in sinhl()
68 t = h*w; in sinhl()
69 return t*w; in sinhl()
De_coshl.c39 long double t,w; in coshl() local
53 t = expm1l(fabsl(x)); in coshl()
54 w = one+t; in coshl()
55 return one+(t*t)/(w+w); in coshl()
60 t = expl(fabsl(x)); in coshl()
61 return half*t+half/t; in coshl()
73 t = half*w; in coshl()
74 return t*w; in coshl()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/
De_sinhl.c55 long double t, w, h; in sinhl() local
82 t = expm1l (u.value); in sinhl()
84 return h * (2.0L * t - t * t / (t + one)); in sinhl()
85 return h * (t + t / (t + one)); in sinhl()
97 t = h * w; in sinhl()
98 return t * w; in sinhl()
De_coshl.c55 long double t, w; in coshl() local
74 t = expm1l (u.value); in coshl()
75 w = one + t; in coshl()
77 return one + (t * t) / (w + w); in coshl()
83 t = expl (u.value); in coshl()
84 return half * t + half / t; in coshl()
95 t = half * w; in coshl()
96 return t * w; in coshl()
De_acoshl.c36 long double t; in acoshl() local
50 t=x*x; in acoshl()
51 return logl(2.0L*x-one/(x+sqrtl(t-one))); in acoshl()
53 t = x-one; in acoshl()
54 return log1pl(t+sqrtl(2.0L*t+t*t)); in acoshl()
/picolibc-3.7.0-3.6.0/test/libc-testsuite/
Dqsort.c84 static struct three t[] = { variable
115 qsort(t, sizeof(t)/sizeof(t[0]), sizeof(t[0]), tcmp); in test_qsort()
116 for (i=0; i<(int)(sizeof(t)/sizeof(t[0])-1); i++) { in test_qsort()
117 if (tcmp(&t[i], &t[i+1]) > 0) { in test_qsort()
119 for (i=0; i<(int)(sizeof(t)/sizeof(t[0])); i++) in test_qsort()
120 printf("\t0x%02x%02x%02x\n", t[i].b[0], t[i].b[1], t[i].b[2]); in test_qsort()

123456789