Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 231) sorted by relevance

12345678910

/picolibc-latest/test/
Dtestcases.c92 result |= test(__LINE__, "0", "%.7g", printf_float(0.0));
93 result |= test(__LINE__, "0.33", "%.*f", 2, printf_float(0.33333333));
96 result |= test(__LINE__, "foo", "%.3s", "foobar");
97 result |= test(__LINE__, " 00004", "%10.5d", 4);
98 result |= test(__LINE__, " 42", "% d", 42);
100 result |= test(__LINE__, "-42", "% d", -42);
102 result |= test(__LINE__, " 42", "% 5d", 42);
103 result |= test(__LINE__, " -42", "% 5d", -42);
104 result |= test(__LINE__, " 42", "% 15d", 42);
105 result |= test(__LINE__, " -42", "% 15d", -42);
[all …]
Dtls.c81 result++; \
88 int result = 0; in check_tls() local
97 result++; in check_tls()
103 result++; in check_tls()
109 result++; in check_tls()
114 result++; in check_tls()
119 result++; in check_tls()
124 result++; in check_tls()
129 result++; in check_tls()
134 result++; in check_tls()
[all …]
Dmalloc_stress.c122 int result = 0; in check_blocks() local
125 result += check_block(which, i); in check_blocks()
126 return result; in check_blocks()
132 int result = 0; in check_malloc() local
139 result++; in check_malloc()
143 result++; in check_malloc()
147 result++; in check_malloc()
151 result++; in check_malloc()
154 return result; in check_malloc()
165 int result = 0; in main() local
[all …]
/picolibc-latest/newlib/libc/machine/arm/machine/
Dmath.h64 double result; in sqrt() local
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()
75 return result; in sqrt()
81 double result; in fabs() local
82 __asm__ ("vabs.f64\t%P0, %P1" : "=w" (result) : "w" (x)); in fabs()
83 return result; in fabs()
90 double result; in ceil() local
91 __asm__ volatile ( "vrintp.f64\t%P0, %P1" : "=w" (result) : "w" (x) ); in ceil()
92 return result; in ceil()
[all …]
/picolibc-latest/newlib/libm/machine/spu/headers/
Dsinhd2.h87 vec_double2 result; in _sinhd2() local
89 result = spu_madd(x2,f23,f21); in _sinhd2()
90 result = spu_madd(x2,result,f19); in _sinhd2()
91 result = spu_madd(x2,result,f17); in _sinhd2()
92 result = spu_madd(x2,result,f15); in _sinhd2()
93 result = spu_madd(x2,result,f13); in _sinhd2()
94 result = spu_madd(x2,result,f11); in _sinhd2()
95 result = spu_madd(x2,result,f09); in _sinhd2()
96 result = spu_madd(x2,result,f07); in _sinhd2()
97 result = spu_madd(x2,result,f05); in _sinhd2()
[all …]
Dcoshd2.h84 vec_double2 result; in _coshd2() local
86 result = spu_madd(x2,f22,f20); in _coshd2()
87 result = spu_madd(x2,result,f18); in _coshd2()
88 result = spu_madd(x2,result,f16); in _coshd2()
89 result = spu_madd(x2,result,f14); in _coshd2()
90 result = spu_madd(x2,result,f12); in _coshd2()
91 result = spu_madd(x2,result,f10); in _coshd2()
92 result = spu_madd(x2,result,f08); in _coshd2()
93 result = spu_madd(x2,result,f06); in _coshd2()
94 result = spu_madd(x2,result,f04); in _coshd2()
[all …]
Dexpd2.h120 vec_double2 result; in _expd2() local
144 result = spu_madd(r6, p1, p2); in _expd2()
145 result = spu_add(result, spu_splats(1.0)); in _expd2()
149 result = spu_madd(r,f12,f11); in _expd2()
150 result = spu_madd(result,r,f10); in _expd2()
151 result = spu_madd(result,r,f09); in _expd2()
152 result = spu_madd(result,r,f08); in _expd2()
153 result = spu_madd(result,r,f07); in _expd2()
154 result = spu_madd(result,r,f06); in _expd2()
155 result = spu_madd(result,r,f05); in _expd2()
[all …]
Dsinhf4.h74 vec_float4 result; in _sinhf4() local
76 result = spu_madd(x2,f11,f09); in _sinhf4()
77 result = spu_madd(x2,result,f07); in _sinhf4()
78 result = spu_madd(x2,result,f05); in _sinhf4()
79 result = spu_madd(x2,result,f03); in _sinhf4()
80 result = spu_madd(x2,result,spu_splats(1.0f)); in _sinhf4()
81 result = spu_mul(x,result); in _sinhf4()
95 result = spu_sel(result,r2,use_exp); in _sinhf4()
98 result = (vec_float4)spu_or((vec_uint4)result,spu_and((vec_uint4)x,sign_mask)); in _sinhf4()
100 return result; in _sinhf4()
Dcoshf4.h74 vec_float4 result; in _coshf4() local
76 result = spu_madd(x2,f12,f10); in _coshf4()
77 result = spu_madd(x2,result,f08); in _coshf4()
78 result = spu_madd(x2,result,f06); in _coshf4()
79 result = spu_madd(x2,result,f04); in _coshf4()
80 result = spu_madd(x2,result,f02); in _coshf4()
81 result = spu_madd(x2,result,spu_splats(1.0f)); in _coshf4()
95 result = spu_sel(result,r2,use_exp); in _coshf4()
97 return result; in _coshf4()
Dlgammaf4.h76 vec_float4 result; in _lgammaf4() local
436 result = coeff_11; in _lgammaf4()
437 result = spu_madd(xappr, result, coeff_10); in _lgammaf4()
438 result = spu_madd(xappr, result, coeff_09); in _lgammaf4()
439 result = spu_madd(xappr, result, coeff_08); in _lgammaf4()
440 result = spu_madd(xappr, result, coeff_07); in _lgammaf4()
441 result = spu_madd(xappr, result, coeff_06); in _lgammaf4()
444 vec_float4 resultn = result; in _lgammaf4()
447 result = spu_sel(result, spu_splats(0.0f), isrational); in _lgammaf4()
449 result = spu_madd(xappr, result, coeff_05); in _lgammaf4()
[all …]
Datan2f4.h73 vector float result; in _atan2f4() local
86 result = _atanf4(_divf4(y,x)); in _atan2f4()
87 result = spu_sel(result, spu_sub(result, pi), quad1); in _atan2f4()
88 result = spu_sel(result, spu_add(result, pi), quad4); in _atan2f4()
90 return result; in _atan2f4()
Derfcf4.h73 vec_float4 result; in _erfcf4() local
399 result = coeff_14; in _erfcf4()
400 result = spu_madd(xappr, result, coeff_13); in _erfcf4()
401 result = spu_madd(xappr, result, coeff_12); in _erfcf4()
402 result = spu_madd(xappr, result, coeff_11); in _erfcf4()
403 result = spu_madd(xappr, result, coeff_10); in _erfcf4()
404 result = spu_madd(xappr, result, coeff_09); in _erfcf4()
405 result = spu_madd(xappr, result, coeff_08); in _erfcf4()
406 result = spu_madd(xappr, result, coeff_07); in _erfcf4()
407 result = spu_madd(xappr, result, coeff_06); in _erfcf4()
[all …]
Datan2d2.h74 vector double result; in _atan2d2() local
87 result = _atand2(_divd2(y,x)); in _atan2d2()
89 result = spu_sel(result, spu_sub(result, pi), quad1); in _atan2d2()
90 result = spu_sel(result, spu_add(result, pi), quad4); in _atan2d2()
92 return result; in _atan2d2()
Datanhf4.h91 vec_float4 result, fresult, mresult;; in _atanhf4() local
120 result = spu_sel(mresult, fresult, use_form); in _atanhf4()
126result = (vec_float4)spu_add((vec_uint4)result, spu_and(one, spu_cmpgt(xabs, spu_splats(0.0f)))); in _atanhf4()
127result = (vec_float4)spu_add((vec_uint4)result, spu_and(one, spu_cmpgt(xabs, spu_splats(0.25f)))); in _atanhf4()
132 result = spu_sel(result, huge, spu_cmpeq(xabs, onef)); in _atanhf4()
140 result = spu_sel(result, x, (vec_uint4)sign_mask); in _atanhf4()
142 return result; in _atanhf4()
Datand2.h73 vector double result; in _atand2() local
87 result = _asind2(_divd2(x1, _sqrtd2(spu_add(x1squ, oned)))); in _atand2()
92 result = spu_sel(result, spu_sub(pi2, result), gt1); in _atand2()
97 result = spu_sel(result, x, (vec_ullong2)signbit); in _atand2()
99 return (result); in _atand2()
Derfd2.h78 vec_double2 tresult, presult, result; in _erfd2() local
102 result = spu_sel(tresult, presult, (vec_ullong2)spu_cmpgt(xf, approx_point)); in _erfd2()
111 result = spu_sel(result, oned, spu_testsv(x, SPU_SV_NEG_INFINITY | SPU_SV_POS_INFINITY)); in _erfd2()
112 result = spu_sel(result, x, spu_testsv(x, SPU_SV_NEG_DENORM | SPU_SV_POS_DENORM)); in _erfd2()
117 result = spu_or(result, xsign); in _erfd2()
119 return result; in _erfd2()
Derff4.h67 vec_float4 result; in _erff4() local
369 result = coeff_10; in _erff4()
370 result = spu_madd(xappr, result, coeff_09); in _erff4()
371 result = spu_madd(xappr, result, coeff_08); in _erff4()
372 result = spu_madd(xappr, result, coeff_07); in _erff4()
373 result = spu_madd(xappr, result, coeff_06); in _erff4()
374 result = spu_madd(xappr, result, coeff_05); in _erff4()
375 result = spu_madd(xappr, result, coeff_04); in _erff4()
376 result = spu_madd(xappr, result, coeff_03); in _erff4()
377 result = spu_madd(xappr, result, coeff_02); in _erff4()
[all …]
/picolibc-latest/newlib/libc/machine/riscv/machine/
Dmath.h109 double result; in copysign() local
110 __asm__("fsgnj.d\t%0, %1, %2" : "=f" (result) : "f" (x), "f" (y)); in copysign()
111 return result; in copysign()
117 double result; in fabs() local
118 __asm__("fabs.d\t%0, %1" : "=f"(result) : "f"(x)); in fabs()
119 return result; in fabs()
125 double result; in fmax() local
129 __asm__ volatile("fmax.d\t%0, %1, %2" : "=f" (result) : "f" (x), "f" (y)); in fmax()
130 return result; in fmax()
136 double result; in fmin() local
[all …]
/picolibc-latest/newlib/testsuite/newlib.time/
Dasctime.c44 char *result; member
59 .result = "Sun Jan 0 00:00:00 1900\n",
74 .result = NULL,
89 .result = "Sun Mar 21 20:15:20 2022\n",
104 .result = "Sun Jul 15 10:50:40 2022\n",
120 .result = "??? Jul 15 10:50:40 2022\n",
135 .result = "Mon ??? 15 10:50:40 2022\n",
157 const char *result = asctime_r(&tests[n].tm, buf); in main() local
159 if (tests[n].result == NULL && result == NULL) in main()
162 if (tests[n].result != NULL && result != NULL && in main()
[all …]
/picolibc-latest/newlib/libc/machine/aarch64/machine/
Dmath.h58 double result; in sqrt() local
63 __asm__ __volatile__ ("fsqrt\t%d0, %d1" : "=w" (result) : "w" (x)); in sqrt()
64 return result; in sqrt()
70 double result; in fma() local
71 __asm__ __volatile__ ("fmadd\t%d0, %d1, %d2, %d3" : "=w" (result) : "w" (x), "w" (y), "w" (z)); in fma()
72 return result; in fma()
81 float result; in sqrtf() local
86 __asm__ __volatile__ ("fsqrt\t%s0, %s1" : "=w" (result) : "w" (x)); in sqrtf()
87 return result; in sqrtf()
93 float result; in fmaf() local
[all …]
/picolibc-latest/newlib/libc/tinystdio/ryu/
Dryu.h24 int d2s_buffered_n(double f, char* result);
25 void d2s_buffered(double f, char* result);
28 int f2s_buffered_n(float f, char* result);
29 void f2s_buffered(float f, char* result);
32 int d2fixed_buffered_n(double d, uint32_t precision, char* result);
33 void d2fixed_buffered(double d, uint32_t precision, char* result);
36 int d2exp_buffered_n(double d, uint32_t precision, char* result);
37 void d2exp_buffered(double d, uint32_t precision, char* result);
/picolibc-latest/newlib/libc/tinystdio/
Dryu_table.c96 void __double_computePow5(const uint32_t i, uint64_t* const result) { in __double_computePow5() argument
102 result[0] = mul[0]; in __double_computePow5()
103 result[1] = mul[1]; in __double_computePow5()
111 result[0] = (uint64_t) shiftedSum; in __double_computePow5()
112 result[1] = (uint64_t) (shiftedSum >> 64); in __double_computePow5()
116 void __double_computeInvPow5(const uint32_t i, uint64_t* const result) { in __double_computeInvPow5() argument
122 result[0] = mul[0]; in __double_computeInvPow5()
123 result[1] = mul[1]; in __double_computeInvPow5()
132 result[0] = (uint64_t) shiftedSum; in __double_computeInvPow5()
133 result[1] = (uint64_t) (shiftedSum >> 64); in __double_computeInvPow5()
[all …]
/picolibc-latest/newlib/libc/stdio/
Dfunopen.c113 int result; in funreader() local
116 if ((result = c->readfn (c->cookie, buf, n)) < 0 && errno) in funreader()
118 return result; in funreader()
127 int result; in funwriter() local
130 if ((result = c->writefn (c->cookie, buf, n)) < 0 && errno) in funwriter()
132 return result; in funwriter()
143 fpos_t result; in funseeker() local
145 if ((result = c->seekfn (c->cookie, (fpos_t) off, whence)) < 0 && errno) in funseeker()
148 _fpos64_t result; in funseeker() local
150 if ((result = c->seekfn (c->cookie, (_fpos64_t) off, whence)) < 0 && errno) in funseeker()
[all …]
Dtmpnam.c108 char *result, in worker() argument
120 sprintf ( result, "%s/%s%x.%x", part1, part2, part3, *part4); in worker()
122 t = open (result, O_RDONLY, 0); in worker()
127 result[0] = '\0'; in worker()
145 char *result; in tmpnam() local
151 result = _tmpnam_buf; in tmpnam()
155 result = s; in tmpnam()
159 if (worker (result, P_tmpdir, "t", pid, &_tls_inc)) in tmpnam()
162 return result; in tmpnam()
/picolibc-latest/newlib/libm/machine/aarch64/
Ds_lround.c33 long int result; in lround() local
34 if (sizeof (result) == 8) { in lround()
35 __asm__("fcvtas\t%x0, %d1" : "=r" (result) : "w" (x)); in lround()
37 __asm__("fcvtas\t%w0, %d1" : "=r" (result) : "w" (x)); in lround()
39 return result; in lround()

12345678910