Home
last modified time | relevance | path

Searched refs:sign (Results 1 – 25 of 121) sorted by relevance

12345

/picolibc-3.7.0-3.6.0/newlib/libc/machine/w65/
Ddivsi3.c18 #define divnorm(num, den, sign) \ argument
23 sign = 1; \
27 sign = 0; \
33 sign = 1 - sign; \
67 #define exitdiv(sign, res) if (sign) { res = - res;} return res; argument
72 int sign = 0; in __modsi3() local
80 sign = 1; in __modsi3()
88 if (sign) in __modsi3()
97 int sign; in __divsi3() local
100 divnorm (numerator, denominator, sign); in __divsi3()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/h8500/
Ddivsi3.c18 #define divnorm(num, den, sign) \ argument
23 sign = 1; \
27 sign = 0; \
33 sign = 1 - sign; \
67 #define exitdiv(sign, res) if (sign) { res = - res;} return res; argument
72 int sign = 0; in __modsi3() local
80 sign = 1; in __modsi3()
88 if (sign) in __modsi3()
97 int sign; in __divsi3() local
100 divnorm (numerator, denominator, sign); in __divsi3()
[all …]
/picolibc-3.7.0-3.6.0/test/
Dtest-efcvt.c45 int sign; member
63 #define ecvt_r(n, dig, dec, sign, buf, len) (ecvtbuf(n, dig, dec, sign, buf) ? 0 : -1) argument
64 #define fcvt_r(n, dig, dec, sign, buf, len) (fcvtbuf(n, dig, dec, sign, buf) ? 0 : -1) argument
65 #define ecvtf_r(n, dig, dec, sign, buf, len) (ecvtbuf(n, dig, dec, sign, buf) ? 0 : -1) argument
66 #define fcvtf_r(n, dig, dec, sign, buf, len) (fcvtbuf(n, dig, dec, sign, buf) ? 0 : -1) argument
177 int sign; \
178 int ret = func(tests[i].value, tests[i].ndigit, &decpt, &sign, buf, sizeof(buf)); \
190 sign != tests[i].sign) \
193 i, buf, decpt, sign, \
194 tests[i].expect, tests[i].decpt, tests[i].sign); \
Dtest-long-long.c49 int sign = 1; in naive_atou() local
59 return v * sign; in naive_atou()
66 int sign = 1; in naive_atol() local
73 sign = 1; in naive_atol()
77 sign = -1; in naive_atol()
86 return v * sign; in naive_atol()
104 int sign = 0; in naive_ltoa() local
108 sign = 1; in naive_ltoa()
115 if (sign) in naive_ltoa()
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Defgcvt.c115 int *sign) in fcvt() argument
117 return fcvtbuf (d, ndigit, decpt, sign, NULL); in fcvt()
124 int *sign) in fcvtf() argument
126 return fcvt ((double) d, ndigit, decpt, sign); in fcvtf()
159 int *sign) in ecvt() argument
161 return ecvtbuf (d, ndigit, decpt, sign, NULL); in ecvt()
168 int *sign) in ecvtf() argument
170 return ecvt ((double) d, ndigit, decpt, sign); in ecvtf()
/picolibc-3.7.0-3.6.0/newlib/libm/math/
Ds_sqrt.c92 __uint32_t sign = 0x80000000; in sqrt64() local
106 if (((ix0 & (~sign)) | ix1) == 0) in sqrt64()
129 ix0 += ix0 + ((ix1 & sign) >> 31); in sqrt64()
135 ix0 += ix0 + ((ix1 & sign) >> 31); in sqrt64()
147 ix0 += ix0 + ((ix1 & sign) >> 31); in sqrt64()
152 r = sign; in sqrt64()
158 if (((t1 & sign) == sign) && (s1 & sign) == 0) in sqrt64()
166 ix0 += ix0 + ((ix1 & sign) >> 31); in sqrt64()
188 ix1 |= sign; in sqrt64()
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Ds_lround.c58 __int32_t sign, exponent_less_1023; in lround64() local
66 sign = ((msw & 0x80000000) ? -1 : 1); in lround64()
80 return sign; in lround64()
122 if (sign == 1 || in lround64()
127 return sign == 1 ? LONG_MAX : LONG_MIN; in lround64()
132 if (sizeof (long) == 4 && sign == 1 && result == LONG_MIN) in lround64()
135 return sign * result; in lround64()
Dfrexpl.c44 __uint32_t sign:1; member
47 __uint32_t sign:1; member
54 __uint32_t sign:1; member
70 __uint32_t sign:1; member
75 __uint32_t sign:1; member
81 __uint32_t sign:1; member
100 __uint32_t sign:1; member
107 __uint32_t sign:1; member
130 __uint32_t sign:1; member
134 __uint32_t sign:1; member
[all …]
Ds_llround.c21 __int32_t sign, exponent_less_1023; in llround64() local
29 sign = ((msw & 0x80000000) ? -1 : 1); in llround64()
44 return sign; in llround64()
81 if (sign == 1 || in llround64()
86 return sign == 1 ? LLONG_MAX : LLONG_MIN; in llround64()
91 return sign * result; in llround64()
Dsf_llround.c22 __int32_t sign; in llroundf() local
26 sign = (w & 0x80000000) != 0 ? -1 : 1; in llroundf()
33 return exponent_less_127 < -1 ? 0 : sign; in llroundf()
49 return sign == 1 ? LLONG_MAX : LLONG_MIN; in llroundf()
52 return sign * result; in llroundf()
Dsf_lround.c20 __int32_t sign; in lroundf() local
24 sign = (w & 0x80000000) != 0 ? -1 : 1; in lroundf()
31 return exponent_less_127 < -1 ? 0 : sign; in lroundf()
47 return sign == 1 ? LONG_MAX : LONG_MIN; in lroundf()
50 return sign * result; in lroundf()
Dcosf.c63 s = p->sign[n & 3]; in cosf()
73 int sign = xi >> 31; in cosf() local
78 s = p->sign[(n + sign) & 3]; in cosf()
80 if ((n + sign) & 2) in cosf()
Dsinf.c67 s = p->sign[n & 3]; in sinf()
77 int sign = xi >> 31; in sinf() local
82 s = p->sign[(n + sign) & 3]; in sinf()
84 if ((n + sign) & 2) in sinf()
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Decvtl.c48 int *sign) in ecvtl() argument
50 if (ecvtl_r(invalue, ndigit, decpt, sign, ecvt_buf, sizeof(ecvt_buf)) < 0) in ecvtl()
64 int *sign) in ecvtl() argument
66 return ecvtf((float) invalue, ndigit, decpt, sign); in ecvtl()
77 int *sign) in ecvtl() argument
79 return ecvt((double) invalue, ndigit, decpt, sign); in ecvtl()
Dfcvtl.c50 int *sign) in fcvtl() argument
52 if (fcvtl_r(invalue, ndigit, decpt, sign, fcvt_buf, sizeof(fcvt_buf)) < 0) in fcvtl()
65 int *sign) in fcvtl() argument
67 return fcvtf((float) invalue, ndecimal, decpt, sign); in fcvtl()
78 int *sign) in fcvtl() argument
80 return fcvt((double) invalue, ndecimal, decpt, sign); in fcvtl()
Decvtl_r.c46 int *sign, in ecvtl_r() argument
61 *sign = invalue < 0; in ecvtl_r()
79 *sign = !!(dtoa.flags & DTOA_MINUS); in ecvtl_r()
96 int *sign, in ecvtl_r() argument
100 return ecvtf_r((float) invalue, ndigit, decpt, sign, buf, len); in ecvtl_r()
111 int *sign, in ecvtl_r() argument
115 return ecvt_r((double) invalue, ndigit, decpt, sign, buf, len); in ecvtl_r()
Dfcvtl_r.c46 int *sign, in fcvtl_r() argument
59 *sign = invalue < 0; in fcvtl_r()
79 *sign = !!(dtoa.flags & DTOA_MINUS); in fcvtl_r()
149 int *sign, in fcvtl_r() argument
153 return fcvtf_r((float) invalue, ndecimal, decpt, sign, buf, len); in fcvtl_r()
164 int *sign, in fcvtl_r() argument
168 return fcvt_r((double) invalue, ndecimal, decpt, sign, buf, len); in fcvtl_r()
Decvt.c50 int *sign) in ecvt() argument
52 if (ecvt_r(invalue, ndigit, decpt, sign, ecvt_buf, sizeof(ecvt_buf)) < 0) in ecvt()
63 int *sign) in ecvt() argument
65 return ecvtf((float) invalue, ndigit, decpt, sign); in ecvt()
Dfcvt.c52 int *sign) in fcvt() argument
54 if (fcvt_r(invalue, ndigit, decpt, sign, fcvt_buf, sizeof(fcvt_buf)) < 0) in fcvt()
65 int *sign) in fcvt() argument
67 return fcvtf((float) invalue, ndigit, decpt, sign); in fcvt()
Decvt_r.c46 int *sign, in ecvt_r() argument
61 *sign = invalue < 0; in ecvt_r()
73 *sign = !!(dtoa.flags & DTOA_MINUS); in ecvt_r()
90 int *sign, in ecvt_r() argument
94 return ecvtf_r(invalue, ndigit, decpt, sign, buf, len); in ecvt_r()
/picolibc-3.7.0-3.6.0/newlib/libc/xdr/
Dxdr_float_vax.c49 unsigned int sign:1; member
57 unsigned int sign:1; member
110 is.sign = vs.sign; in xdr_float()
131 vsp->sign = is.sign; in xdr_float()
147 unsigned int sign:1; member
156 unsigned int sign:1; member
218 id.sign = vd.sign; in xdr_double()
243 vd.sign = id.sign; in xdr_double()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/common/
Ds_rintl.c54 int ex, sign; in rintl() local
65 sign = expsign >> 15; in rintl()
74 x += (long double)shift[sign]; in rintl()
75 x -= (long double)shift[sign]; in rintl()
82 return ((long double)zero[sign]); in rintl()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Dllrintf.h43 vec_uint4 mant, sign, borrow; in _llrintf() local
69 sign = spu_maskw(spu_extract(spu_rlmaska((vec_int4)in, -31), 0)); in _llrintf()
71 mant = spu_xor(mant, sign); in _llrintf()
72 borrow = spu_genb(mant, sign); in _llrintf()
76 mant = spu_subx(mant, sign, borrow); in _llrintf()
Dlrint.h44 vec_int4 out, sign; in _lrint() local
57 sign = spu_rlmaska((vec_int4)in, -31); in _lrint()
59 out = spu_sub(spu_xor(out, sign), sign); in _lrint()
Dllroundf.h43 vec_uint4 mant, sign, borrow; in _llroundf() local
74 sign = spu_maskw(spu_extract(spu_rlmaska((vec_int4)in, -31), 0)); in _llroundf()
76 mant = spu_xor(mant, sign); in _llroundf()
77 borrow = spu_genb(mant, sign); in _llroundf()
82 mant = spu_subx(mant, sign, borrow); in _llroundf()

12345