/picolibc-3.7.0-3.6.0/test/ |
D | testcases.c | 75 result |= test(__LINE__, "0", "%.7g", 0.0); 76 result |= test(__LINE__, "0.33", "%.*f", 2, 0.33333333); 79 result |= test(__LINE__, "foo", "%.3s", "foobar"); 80 result |= test(__LINE__, " 00004", "%10.5d", 4); 81 result |= test(__LINE__, " 42", "% d", 42); 83 result |= test(__LINE__, "-42", "% d", -42); 85 result |= test(__LINE__, " 42", "% 5d", 42); 86 result |= test(__LINE__, " -42", "% 5d", -42); 87 result |= test(__LINE__, " 42", "% 15d", 42); 88 result |= test(__LINE__, " -42", "% 15d", -42); [all …]
|
D | tls.c | 81 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 …]
|
D | malloc_stress.c | 122 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 138 result++; in check_malloc() 142 result++; in check_malloc() 146 result++; in check_malloc() 150 result++; in check_malloc() 153 return result; in check_malloc() 164 int result = 0; in main() local [all …]
|
D | long_double.c | 49 within_error(long double expect, long double result, long double error) in within_error() argument 54 if (isnan(expect) && isnan(result)) in within_error() 57 if (expect == result) in within_error() 63 difference = fabsl(expect - result) * e; in within_error() 72 check_long_double(const char *name, int i, long double prec, long double expect, long double result) in check_long_double() argument 74 if (!within_error(expect, result, prec)) { in check_long_double() 75 long double diff = fabsl(expect - result); in check_long_double() 78 printf("%s test %d got %La expect %La diff %La\n", name, i, result, expect, diff); in check_long_double() 80 …printf("%s test %d got %a expect %a diff %a\n", name, i, (double) result, (double) expect, (double… in check_long_double() 84 printf("%s test %d got %La expect %La diff %La\n", name, i, result, expect, diff); in check_long_double() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/arm/machine/ |
D | math.h | 64 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-3.7.0-3.6.0/newlib/libm/machine/spu/headers/ |
D | sinhd2.h | 87 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 …]
|
D | coshd2.h | 84 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 …]
|
D | expd2.h | 120 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 …]
|
D | sinhf4.h | 74 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()
|
D | coshf4.h | 74 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()
|
D | lgammaf4.h | 76 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 …]
|
D | atan2f4.h | 73 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()
|
D | erfcf4.h | 73 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 …]
|
D | atan2d2.h | 74 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()
|
D | atanhf4.h | 91 vec_float4 result, fresult, mresult;; in _atanhf4() local 120 result = spu_sel(mresult, fresult, use_form); in _atanhf4() 126 … result = (vec_float4)spu_add((vec_uint4)result, spu_and(one, spu_cmpgt(xabs, spu_splats(0.0f)))); in _atanhf4() 127 … result = (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()
|
D | atand2.h | 73 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()
|
D | erfd2.h | 78 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()
|
D | erff4.h | 67 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-3.7.0-3.6.0/newlib/libc/machine/riscv/machine/ |
D | math.h | 109 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-3.7.0-3.6.0/newlib/libc/machine/aarch64/machine/ |
D | math.h | 51 double result; in sqrt() local 56 __asm__ __volatile__ ("fsqrt\t%d0, %d1" : "=w" (result) : "w" (x)); in sqrt() 57 return result; in sqrt() 63 float result; in sqrtf() local 68 __asm__ __volatile__ ("fsqrt\t%s0, %s1" : "=w" (result) : "w" (x)); in sqrtf() 69 return result; in sqrtf() 75 double result; in fma() local 76 __asm__ __volatile__ ("fmadd\t%d0, %d1, %d2, %d3" : "=w" (result) : "w" (x), "w" (y), "w" (z)); in fma() 77 return result; in fma() 83 float result; in fmaf() local [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | ryu_table.c | 96 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-3.7.0-3.6.0/newlib/libc/stdio/ |
D | funopen.c | 113 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 …]
|
D | tmpnam.c | 109 char *result, in worker() argument 121 sprintf ( result, "%s/%s%x.%x", part1, part2, part3, *part4); in worker() 123 t = open (result, O_RDONLY, 0); in worker() 128 result[0] = '\0'; in worker() 146 char *result; in tmpnam() local 152 result = _tmpnam_buf; in tmpnam() 156 result = s; in tmpnam() 160 if (worker (result, P_tmpdir, "t", pid, &_tls_inc)) in tmpnam() 163 return result; in tmpnam()
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ryu/ |
D | ryu.h | 24 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-3.7.0-3.6.0/newlib/libc/machine/arm/ |
D | strlen-armv7.S | 95 #define result r0 macro 117 mov result, #-8 122 add result, result, #8 133 add result, result, #8 142 add result, result, #8 152 add result, result, #8 163 addeq result, result, #4 169 add result, result, data1a, lsr #3 /* Bits -> Bytes. */ 176 rsb result, tmp1, #0
|