Home
last modified time | relevance | path

Searched refs:sign (Results 26 - 50 of 1066) sorted by relevance

12345678910>>...43

/third_party/musl/src/math/
H A Dfma.c9 struct num { uint64_t m; int e; int sign; }; member
15 int sign = e & 0x800; in normalize() local
26 return (struct num){ix,e,sign}; in normalize()
100 int sign = nx.sign^ny.sign; in fma() local
101 int samesign = !(sign^nz.sign); in fma()
115 sign = !sign; in fma()
[all...]
H A Dsincosf.c32 unsigned n, sign; in sincosf() local
35 sign = ix >> 31; in sincosf()
56 if (sign) { in sincosf()
66 *sin = -__sindf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
67 *cos = -__cosdf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
74 if (sign) { in sincosf()
83 *sin = __sindf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
84 *cos = __cosdf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
H A Dtgamma.c29 /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */
114 int sign = u.i>>63; in tgamma() local
127 if (sign) in tgamma()
136 if (sign) { in tgamma()
146 absx = sign ? -x : x; in tgamma()
174 double __lgamma_r(double x, int *sign)
178 *sign = 1;
198 *sign = 1 - 2*!!signbit(x);
205 *sign = 1 - 2*!!signbit(x);
215 *sign
[all...]
H A Djn.c44 int nm1, i, sign; in jn() local
48 sign = ix>>31; in jn()
63 sign ^= 1; in jn()
69 sign &= n; /* even n: 0, odd n: signbit(x) */ in jn()
211 return sign ? -b : b; in jn()
218 int nm1, sign, i; in yn() local
222 sign = ix>>31; in yn()
227 if (sign && (ix|lx)!=0) /* x < 0 */ in yn()
236 sign = n&1; in yn()
239 sign in yn()
[all...]
H A Dcosf.c30 unsigned n, sign; in cosf() local
33 sign = ix >> 31; in cosf()
46 return -__cosdf(sign ? x+c2pio2 : x-c2pio2); in cosf()
48 if (sign) in cosf()
56 return __cosdf(sign ? x+c4pio2 : x-c4pio2); in cosf()
58 if (sign) in cosf()
H A Dtanf.c30 unsigned n, sign; in tanf() local
33 sign = ix >> 31; in tanf()
46 return __tandf((sign ? x+t1pio2 : x-t1pio2), 1); in tanf()
48 return __tandf((sign ? x+t2pio2 : x-t2pio2), 0); in tanf()
52 return __tandf((sign ? x+t3pio2 : x-t3pio2), 1); in tanf()
54 return __tandf((sign ? x+t4pio2 : x-t4pio2), 0); in tanf()
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dfma.c9 struct num { uint64_t m; int e; int sign; }; member
15 int sign = e & 0x800; in normalize() local
26 return (struct num){ix,e,sign}; in normalize()
100 int sign = nx.sign^ny.sign; in fma() local
101 int samesign = !(sign^nz.sign); in fma()
115 sign = !sign; in fma()
[all...]
H A Dsincosf.c32 unsigned n, sign; in sincosf() local
35 sign = ix >> 31; in sincosf()
56 if (sign) { in sincosf()
66 *sin = -__sindf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
67 *cos = -__cosdf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
74 if (sign) { in sincosf()
83 *sin = __sindf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
84 *cos = __cosdf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
H A Dtgamma.c29 /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */
114 int sign = u.i>>63; in tgamma() local
127 if (sign) in tgamma()
136 if (sign) { in tgamma()
146 absx = sign ? -x : x; in tgamma()
174 double __lgamma_r(double x, int *sign)
178 *sign = 1;
198 *sign = 1 - 2*!!signbit(x);
205 *sign = 1 - 2*!!signbit(x);
215 *sign
[all...]
H A Djn.c44 int nm1, i, sign; in jn() local
48 sign = ix>>31; in jn()
63 sign ^= 1; in jn()
69 sign &= n; /* even n: 0, odd n: signbit(x) */ in jn()
211 return sign ? -b : b; in jn()
218 int nm1, sign, i; in yn() local
222 sign = ix>>31; in yn()
227 if (sign && (ix|lx)!=0) /* x < 0 */ in yn()
236 sign = n&1; in yn()
239 sign in yn()
[all...]
H A Dcosf.c30 unsigned n, sign; in cosf() local
33 sign = ix >> 31; in cosf()
46 return -__cosdf(sign ? x+c2pio2 : x-c2pio2); in cosf()
48 if (sign) in cosf()
56 return __cosdf(sign ? x+c4pio2 : x-c4pio2); in cosf()
58 if (sign) in cosf()
H A Dtanf.c30 unsigned n, sign; in tanf() local
33 sign = ix >> 31; in tanf()
46 return __tandf((sign ? x+t1pio2 : x-t1pio2), 1); in tanf()
48 return __tandf((sign ? x+t2pio2 : x-t2pio2), 0); in tanf()
52 return __tandf((sign ? x+t3pio2 : x-t3pio2), 1); in tanf()
54 return __tandf((sign ? x+t4pio2 : x-t4pio2), 0); in tanf()
/third_party/jerryscript/jerry-core/ecma/base/
H A Decma-helpers-number.c37 * Position of the sign bit in ecma-numbers
47 * Packing sign, fraction and biased exponent to ecma-number
49 * @return ecma-number with specified sign, biased_exponent and fraction
52 ecma_number_pack (bool sign, /**< sign */ in ecma_number_pack() argument
59 uint32_t packed_value = (((sign ? 1u : 0u) << ECMA_NUMBER_SIGN_POS) | in ecma_number_pack()
69 * Unpacking sign, fraction and biased exponent from ecma-number
73 bool *sign_p, /**< [out] sign (optional) */ in ecma_number_unpack()
110 * Packing sign, fraction and biased exponent to ecma-number
112 * @return ecma-number with specified sign, biased_exponen
115 ecma_number_pack(bool sign, uint32_t biased_exp, uint64_t fraction) ecma_number_pack() argument
208 bool sign; ecma_number_get_sign_field() local
266 ecma_number_make_infinity(bool sign) ecma_number_make_infinity() argument
436 ecma_number_make_from_sign_mantissa_and_exponent(bool sign, uint64_t mantissa, int32_t exponent) ecma_number_make_from_sign_mantissa_and_exponent() argument
602 const bool sign = ecma_number_is_negative (num); ecma_number_trunc() local
747 int sign = 1; ecma_number_parse_int() local
918 bool sign = false; ecma_number_parse_float() local
[all...]
/third_party/python/Modules/_decimal/libmpdec/
H A Dnumbertheory.c46 * sign := -1 for forward transform, 1 for backward transform.
50 _mpd_getkernel(mpd_uint_t n, int sign, int modnum) in _mpd_getkernel() argument
63 if (sign == -1) in _mpd_getkernel()
72 * sign := -1 for forward transform, 1 for backward transform.
76 _mpd_init_fnt_params(mpd_size_t n, int sign, int modnum) in _mpd_init_fnt_params() argument
89 assert(sign == -1 || sign == 1); in _mpd_init_fnt_params()
99 kernel = _mpd_getkernel(n, sign, modnum); in _mpd_init_fnt_params()
117 _mpd_init_w3table(mpd_uint_t w3table[3], int sign, int modnum) in _mpd_init_w3table() argument
127 kernel = _mpd_getkernel(3, sign, modnu in _mpd_init_w3table()
[all...]
/third_party/icu/vendor/double-conversion/upstream/double-conversion/
H A Ddouble-to-string.cc177 bool sign; in ToShortestIeeeNumber() local
183 &sign, &decimal_rep_length, &decimal_point); in ToShortestIeeeNumber()
186 if (sign && (value != 0.0 || !unique_zero)) { in ToShortestIeeeNumber()
220 bool sign; in ToFixed() local
228 &sign, &decimal_rep_length, &decimal_point); in ToFixed()
231 if (sign && (value != 0.0 || !unique_zero)) { in ToFixed()
253 bool sign; in ToExponential() local
269 &sign, &decimal_rep_length, &decimal_point); in ToExponential()
273 &sign, &decimal_rep_length, &decimal_point); in ToExponential()
283 if (sign in ToExponential()
309 bool sign; ToPrecision() local
379 DoubleToAscii(double v, DtoaMode mode, int requested_digits, char* buffer, int buffer_length, bool* sign, int* length, int* point) DoubleToAscii() argument
[all...]
/third_party/icu/icu4c/source/i18n/
H A Ddouble-conversion-double-to-string.cpp192 bool sign;
198 &sign, &decimal_rep_length, &decimal_point);
201 if (sign && (value != 0.0 || !unique_zero)) {
235 bool sign;
243 &sign, &decimal_rep_length, &decimal_point);
246 if (sign && (value != 0.0 || !unique_zero)) {
268 bool sign;
284 &sign, &decimal_rep_length, &decimal_point);
288 &sign, &decimal_rep_length, &decimal_point);
298 if (sign
395 DoubleToAscii(double v, DtoaMode mode, int requested_digits, char* buffer, int buffer_length, bool* sign, int* length, int* point) DoubleToAscii() argument
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Ddouble-conversion-double-to-string.cpp199 bool sign;
205 &sign, &decimal_rep_length, &decimal_point);
208 if (sign && (value != 0.0 || !unique_zero)) {
242 bool sign;
250 &sign, &decimal_rep_length, &decimal_point);
253 if (sign && (value != 0.0 || !unique_zero)) {
275 bool sign;
291 &sign, &decimal_rep_length, &decimal_point);
295 &sign, &decimal_rep_length, &decimal_point);
305 if (sign
402 DoubleToAscii(double v, DtoaMode mode, int requested_digits, char* buffer, int buffer_length, bool* sign, int* length, int* point) DoubleToAscii() argument
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Ddouble-conversion-double-to-string.cpp192 bool sign;
198 &sign, &decimal_rep_length, &decimal_point);
201 if (sign && (value != 0.0 || !unique_zero)) {
235 bool sign;
243 &sign, &decimal_rep_length, &decimal_point);
246 if (sign && (value != 0.0 || !unique_zero)) {
268 bool sign;
284 &sign, &decimal_rep_length, &decimal_point);
288 &sign, &decimal_rep_length, &decimal_point);
298 if (sign
395 DoubleToAscii(double v, DtoaMode mode, int requested_digits, char* buffer, int buffer_length, bool* sign, int* length, int* point) DoubleToAscii() argument
[all...]
/third_party/skia/gm/
H A Daddarc.cpp48 SkScalar sign = 1; variable
54 startAngle += fRotate * 360 * speed * sign;
61 sign = -sign;
137 SkScalar sign = 1; variable
140 canvas->rotate(fRotate * sign);
145 sign = -sign;
191 SkScalar sign = 1; variable
194 canvas->rotate(fRotate * sign);
249 SkScalar sign = 1; DEF_SIMPLE_GM() local
[all...]
/third_party/optimized-routines/math/test/rtest/
H A Dsemi.c13 int sign = in[0] & 0x80000000; in test_rint() local
14 int roundup = (isfloor && sign) || (isceil && !sign); in test_rint()
32 out[0] = sign | (roundup ? 0x3FF00000 : 0); in test_rint()
76 int sign = *in & 0x80000000; in test_rintf() local
77 int roundup = (isfloor && sign) || (isceil && !sign); in test_rintf()
94 *out = sign | (roundup ? 0x3F800000 : 0); in test_rintf()
131 int sign; in test_fmod() local
174 sign in test_fmod()
205 int sign; test_fmodf() local
276 int sign = x[0] & 0x80000000; test_ldexp() local
354 int sign = *x & 0x80000000; test_ldexpf() local
428 int sign; test_frexp() local
465 int sign; test_frexpf() local
491 int sign = x[0] & 0x80000000; test_modf() local
528 int sign = *x & 0x80000000; test_modff() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dpgxdec.c55 int *sign) in pgx_decode_header()
67 *sign = 0; in pgx_decode_header()
70 *sign = 1; in pgx_decode_header()
96 int width, int height, int sign, int depth) \
98 const unsigned offset = sign ? (1 << (D - 1)) : 0; \
119 int sign = 0; in pgx_decode_frame() local
123 if ((ret = pgx_decode_header(avctx, &g, &depth, &width, &height, &sign)) < 0) in pgx_decode_frame()
147 write_frame_8(p, &g, width, height, sign, depth); in pgx_decode_frame()
149 write_frame_16(p, &g, width, height, sign, depth); in pgx_decode_frame()
53 pgx_decode_header(AVCodecContext *avctx, GetByteContext *g, int *depth, int *width, int *height, int *sign) pgx_decode_header() argument
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_fp16_conv.c70 nir_ssa_def *sign, nir_rounding_mode mode) in half_rounded()
76 sign = nir_ushr(b, sign, nir_imm_int(b, 31)); in half_rounded()
77 return nir_iadd(b, value, nir_iand(b, nir_inot(b, sign), in half_rounded()
80 sign = nir_ushr(b, sign, nir_imm_int(b, 31)); in half_rounded()
81 return nir_iadd(b, value, nir_iand(b, sign, in half_rounded()
96 nir_ssa_def *sign = nir_iand(b, src, nir_imm_int(b, 0x80000000)); in float_to_half_impl() local
118 overflowed_fp16 = nir_bcsel(b, nir_i2b1(b, sign), nir_imm_int(b, 0x7BFF), nir_imm_int(b, 0x7C00)); in float_to_half_impl()
122 overflowed_fp16 = nir_bcsel(b, nir_i2b1(b, sign), nir_imm_in in float_to_half_impl()
69 half_rounded(nir_builder *b, nir_ssa_def *value, nir_ssa_def *guard, nir_ssa_def *sticky, nir_ssa_def *sign, nir_rounding_mode mode) half_rounded() argument
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcMisc.cpp48 unsigned int sign = (GLhalf)(x >> 31); in floatToHalfFloat() local
70 hf = (((GLhalf)sign) << 15) | (GLhalf)(HALF_FLOAT_MAX_BIASED_EXP) | (GLhalf)(mantissa >> 13); in floatToHalfFloat()
84 hf = (((GLhalf)sign) << 15) | (GLhalf)(mantissa); in floatToHalfFloat()
88 hf = (((GLhalf)sign) << 15) | (GLhalf)((exp - HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) >> 13) | in floatToHalfFloat()
109 unsigned int sign = (GLhalf)(x >> 31); in floatToUnisgnedF11() local
120 if (sign > 0) in floatToUnisgnedF11()
190 unsigned int sign = (GLhalf)(x >> 31); in floatToUnisgnedF10() local
201 if (sign > 0) in floatToUnisgnedF10()
259 unsigned int sign = (unsigned int)(hf >> 15); in halfFloatToFloat() local
304 ui = (sign << 3 in halfFloatToFloat()
[all...]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_conv.c276 src_type.sign = FALSE; in lp_build_clamped_float_to_unsigned_norm()
349 if (!src_type.sign && src_type.width == 32) in lp_build_clamped_float_to_unsigned_norm()
484 src_type.sign == dst_type->sign) in lp_build_conv_auto()
497 ((src_type.floating == 1 && src_type.sign == 1 && dst_type->norm == 1) || in lp_build_conv_auto()
499 src_type.sign == dst_type->sign && dst_type->norm == 0))) { in lp_build_conv_auto()
604 ((src_type.floating == 1 && src_type.sign == 1 && dst_type.norm == 1) || in lp_build_conv()
606 src_type.sign == dst_type.sign in lp_build_conv()
[all...]
/third_party/mesa3d/src/asahi/compiler/
H A Dagx_minifloat.h32 * for sign, in the usual order. Zero exponent has special handling. */
37 float sign = (imm & 0x80) ? -1.0 : 1.0; in agx_minifloat_decode() local
42 return ldexpf(sign * (float) (mantissa | 0x10), exp - 7); in agx_minifloat_decode()
44 return ldexpf(sign * ((float) mantissa), -6); in agx_minifloat_decode()
54 unsigned sign = signbit(f) ? 0x80 : 0; in agx_minifloat_encode() local
69 return sign | (exp << 4) | (mantissa & 0xF); in agx_minifloat_encode()
74 return sign | mantissa; in agx_minifloat_encode()

Completed in 15 milliseconds

12345678910>>...43