Home
last modified time | relevance | path

Searched refs:sign (Results 1 - 25 of 1018) sorted by relevance

12345678910>>...41

/third_party/icu/vendor/double-conversion/upstream/test/cctest/
H A Dtest-dtoa.cc51 Vector<char> buffer, bool* sign, int* length, in DoubleToAscii()
64 sign, length, point); in DoubleToAscii()
86 bool sign; in TEST() local
88 DoubleToAscii(0.0, SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
92 DoubleToAscii(0.0f, SHORTEST_SINGLE, 0, buffer, &sign, &length, &point); in TEST()
96 DoubleToAscii(0.0, FIXED, 2, buffer, &sign, &length, &point); in TEST()
101 DoubleToAscii(0.0, PRECISION, 3, buffer, &sign, &length, &point); in TEST()
106 DoubleToAscii(1.0, SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
110 DoubleToAscii(1.0f, SHORTEST_SINGLE, 0, buffer, &sign, &length, &point); in TEST()
114 DoubleToAscii(1.0, FIXED, 3, buffer, &sign, in TEST()
50 DoubleToAscii(double v, DtoaMode test_mode, int requested_digits, Vector<char> buffer, bool* sign, int* length, int* point) DoubleToAscii() argument
340 bool sign; TEST() local
397 bool sign; TEST() local
426 bool sign; TEST() local
446 bool sign; TEST() local
466 bool sign; TEST() local
489 bool sign; TEST() local
[all...]
/third_party/vk-gl-cts/framework/delibs/debase/
H A DdeFloat16.c30 deUint32 sign; in deFloat32To16() local
40 sign = (x.u >> 16u) & 0x00008000u; in deFloat32To16()
49 return (deFloat16) sign; in deFloat32To16()
64 return (deFloat16) (sign | mantissa); in deFloat32To16()
71 return (deFloat16) (sign | 0x7c00u); in deFloat32To16()
77 return (deFloat16) (sign | 0x7c00u | mantissa | (mantissa == 0u)); in deFloat32To16()
95 return (deFloat16) (sign | 0x7c00u); in deFloat32To16()
98 return (deFloat16) (sign | ((deUint32)expotent << 10u) | (mantissa >> 13u)); in deFloat32To16()
104 deUint64 sign; in deFloat64To16() local
114 sign in deFloat64To16()
218 deUint32 sign; /* sign : 0000 0000 0000 0000 X000 0000 0000 0000 */ deFloat32To16Round() local
375 deUint64 sign; /* sign : 0000 0000 0000 0000 X000 0000 0000 0000 */ deFloat64To16Round() local
491 deUint32 sign; deFloat16To32() local
553 deUint64 sign; deFloat16To64() local
[all...]
/third_party/opencl-headers/CL/
H A Dcl_half.h62 uint16_t sign) in cl_half_handle_overflow()
66 // Round overflow towards zero -> largest finite number (preserving sign) in cl_half_handle_overflow()
67 return (sign << 15) | CL_HALF_MAX_FINITE_MAG; in cl_half_handle_overflow()
69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow()
74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow()
81 return (sign << 15) | CL_HALF_EXP_MASK; in cl_half_handle_overflow()
88 uint16_t sign) in cl_half_handle_underflow()
90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow()
93 return (sign << 15) | 1; in cl_half_handle_underflow()
95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow()
61 cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, uint16_t sign) cl_half_handle_overflow() argument
87 cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, uint16_t sign) cl_half_handle_underflow() argument
120 uint16_t sign = f32.i >> 31; cl_half_from_float() local
246 uint16_t sign = f64.i >> 63; cl_half_from_double() local
371 uint16_t sign = h >> 15; cl_half_to_float() local
[all...]
/third_party/skia/third_party/externals/angle2/include/CL/
H A Dcl_half.h62 uint16_t sign) in cl_half_handle_overflow()
66 // Round overflow towards zero -> largest finite number (preserving sign) in cl_half_handle_overflow()
67 return (sign << 15) | CL_HALF_MAX_FINITE_MAG; in cl_half_handle_overflow()
69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow()
74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow()
81 return (sign << 15) | CL_HALF_EXP_MASK; in cl_half_handle_overflow()
88 uint16_t sign) in cl_half_handle_underflow()
90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow()
93 return (sign << 15) | 1; in cl_half_handle_underflow()
95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow()
61 cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, uint16_t sign) cl_half_handle_overflow() argument
87 cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, uint16_t sign) cl_half_handle_underflow() argument
120 uint16_t sign = f32.i >> 31; cl_half_from_float() local
246 uint16_t sign = f64.i >> 63; cl_half_from_double() local
371 uint16_t sign = h >> 15; cl_half_to_float() local
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/network/
H A Drecv.c48 int *sign = (int *)malloc(sizeof(int)); in SampleServerTask() local
54 *sign = -1; in SampleServerTask()
55 return sign; in SampleServerTask()
72 *sign = -1; in SampleServerTask()
73 return sign; in SampleServerTask()
80 *sign = -1; in SampleServerTask()
81 return sign; in SampleServerTask()
94 return sign; in SampleServerTask()
105 int sign = connect(clnFd, (struct sockaddr *)&srvAddr, sizeof(srvAddr)); in SampleClientTask() local
106 EXPECT_EQ("recv_0100", 0, sign); in SampleClientTask()
131 int sign = pthread_barrier_init(&g_barrier, 0, 2); recv_0100() local
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/stdlib/
H A Dfunctionalext_fcvt.c30 int decpt, sign; in fcvt_0100() local
31 char *result = fcvt(123.456, 2, &decpt, &sign); in fcvt_0100()
35 EXPECT_EQ("fcvt_0100_sign", sign, POSITIVE_NUM); in fcvt_0100()
40 int decpt, sign; in fcvt_0200() local
41 char *result = fcvt(123.454, 2, &decpt, &sign); in fcvt_0200()
45 EXPECT_EQ("fcvt_0100_sign", sign, POSITIVE_NUM); in fcvt_0200()
54 int decpt, sign; in fcvt_0300() local
55 char *result = fcvt(0.0, 2, &decpt, &sign); in fcvt_0300()
59 EXPECT_EQ("fcvt_0300_sign", sign, POSITIVE_NUM); in fcvt_0300()
69 int decpt, sign; in fcvt_0400() local
84 int decpt, sign; fcvt_0500() local
[all...]
/third_party/vk-gl-cts/framework/common/
H A DtcuFloat.hpp81 * \param sign Sign. Must be +1/-1
96 static inline Float construct (int sign, int exponent, StorageType mantissa);
100 * \param sign Sign. Must be +1/-1
107 * The sign is turned into a sign bit and the exponent bias is added.
111 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
121 inline int sign (void) const { return signBit() ? -1 : 1; } in sign() function in tcu::Float
132 static Float zero (int sign);
133 static Float inf (int sign);
136 static Float largestNormal (int sign);
199 zero(int sign) zero() argument
206 inf(int sign) inf() argument
219 largestNormal(int sign) largestNormal() argument
226 smallestNormal(int sign) smallestNormal() argument
234 construct(int sign, int exponent, StorageType mantissa) construct() argument
255 constructBits(int sign, int exponent, StorageType mantissaBits) constructBits() argument
[all...]
/third_party/ffmpeg/libavutil/
H A Dsoftfloat_ieee754.h30 int32_t sign; member
54 int sign = 0; in av_int2sf_ieee754() local
57 sign = 1; in av_int2sf_ieee754()
60 return av_normalize_sf_ieee754((SoftFloat_IEEE754) {sign, n << MANT_BITS, 0 + e}); in av_int2sf_ieee754()
81 int32_t mant, exp, sign; in av_div_sf_ieee754() local
84 sign = a.sign ^ b.sign; in av_div_sf_ieee754()
87 return av_normalize_sf_ieee754((SoftFloat_IEEE754) {sign, mant, exp}); in av_div_sf_ieee754()
94 int32_t sign, man in av_mul_sf_ieee754() local
[all...]
/third_party/optimized-routines/math/
H A Dmath_errf.c26 xflowf (uint32_t sign, float y) in xflowf() argument
28 y = eval_as_float (opt_barrier_float (sign ? -y : y) * y); in xflowf()
33 __math_uflowf (uint32_t sign) in __math_uflowf() argument
35 return xflowf (sign, 0x1p-95f); in __math_uflowf()
42 __math_may_uflowf (uint32_t sign) in __math_may_uflowf() argument
44 return xflowf (sign, 0x1.4p-75f); in __math_may_uflowf()
49 __math_oflowf (uint32_t sign) in __math_oflowf() argument
51 return xflowf (sign, 0x1p97f); in __math_oflowf()
55 __math_divzerof (uint32_t sign) in __math_divzerof() argument
57 float y = opt_barrier_float (sign in __math_divzerof()
[all...]
H A Dmath_err.c26 xflow (uint32_t sign, double y) in xflow() argument
28 y = eval_as_double (opt_barrier_double (sign ? -y : y) * y); in xflow()
33 __math_uflow (uint32_t sign) in __math_uflow() argument
35 return xflow (sign, 0x1p-767); in __math_uflow()
42 __math_may_uflow (uint32_t sign) in __math_may_uflow() argument
44 return xflow (sign, 0x1.8p-538); in __math_may_uflow()
49 __math_oflow (uint32_t sign) in __math_oflow() argument
51 return xflow (sign, 0x1p769); in __math_oflow()
55 __math_divzero (uint32_t sign) in __math_divzero() argument
57 double y = opt_barrier_double (sign in __math_divzero()
[all...]
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Dx_long.c89 unsigned long utmp, sign; in long_i2c() local
101 sign = 0xff; in long_i2c()
104 sign = 0; in long_i2c()
119 *cont++ = (unsigned char)sign; in long_i2c()
121 cont[i] = (unsigned char)(utmp ^ sign); in long_i2c()
133 unsigned long utmp = 0, sign = 0x100; in long_c2i() local
145 sign = 0xff; in long_c2i()
150 sign = 0; in long_c2i()
159 if (sign == 0x100) { in long_c2i()
162 sign in long_c2i()
[all...]
/third_party/openssl/crypto/asn1/
H A Dx_long.c89 unsigned long utmp, sign; in long_i2c() local
101 sign = 0xff; in long_i2c()
104 sign = 0; in long_i2c()
119 *cont++ = (unsigned char)sign; in long_i2c()
121 cont[i] = (unsigned char)(utmp ^ sign); in long_i2c()
133 unsigned long utmp = 0, sign = 0x100; in long_c2i() local
145 sign = 0xff; in long_c2i()
150 sign = 0; in long_c2i()
159 if (sign == 0x100) { in long_c2i()
162 sign in long_c2i()
[all...]
/third_party/node/test/parallel/
H A Dtest-crypto-sign-verify.js43 crypto.createSign('sha1').sign(
62 .sign({
99 .sign(keyPem, 'base64');
102 s1stream = s1stream.sign(keyPem, 'base64');
115 .sign(keyPem, 'latin1');
118 s2stream = s2stream.sign(keyPem, 'latin1');
138 .sign(keyPem, 'buffer');
194 .sign({
201 crypto.sign(algo, data, {
211 .sign({
[all...]
H A Dtest-crypto-rsa-dsa-revert.js329 let rsaSignature = rsaSign.sign(rsaKeyPem, 'hex');
338 rsaSignature = rsaSign.sign(rsaPkcs8KeyPem, 'hex');
349 rsaSignature = rsaSign.sign(signOptions, 'hex');
360 rsaSign.sign(signOptions, 'hex');
377 const sign = crypto.createSign('SHA256');
378 sign.update(input);
380 const output = sign.sign(privateKey, 'hex');
392 const output2 = sign2.sign(privateKey, 'hex');
410 const sign
[all...]
H A Dtest-crypto-rsa-dsa.js346 let rsaSignature = rsaSign.sign(rsaKeyPem, 'hex');
355 rsaSignature = rsaSign.sign(rsaPkcs8KeyPem, 'hex');
366 rsaSignature = rsaSign.sign(signOptions, 'hex');
377 rsaSign.sign(signOptions, 'hex');
394 const sign = crypto.createSign('SHA256');
395 sign.update(input);
397 const output = sign.sign(privateKey, 'hex');
409 const output2 = sign2.sign(privateKey, 'hex');
427 const sign
[all...]
/third_party/musl/porting/liteos_a/kernel/src/internal/
H A Dfloatscan.c63 static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int pok) in decfloat() argument
140 if (!x[0]) return sign * 0.0; in decfloat()
144 return sign * (long double)x[0]; in decfloat()
147 return sign * LDBL_MAX * LDBL_MAX; in decfloat()
151 return sign * LDBL_MIN * LDBL_MIN; in decfloat()
168 if (rp == 9) return sign * (long double)x[0]; in decfloat()
169 if (rp < 9) return sign * (long double)x[0] / p10s[8-rp]; in decfloat()
172 return sign * (long double)x[0] * p10s[rp-10]; in decfloat()
263 y *= sign; in decfloat()
284 frac += 0.25*sign; in decfloat()
314 hexfloat(FILE *f, int bits, int emin, int sign, int pok) hexfloat() argument
428 int sign = 1; __floatscan() local
[all...]
/third_party/musl/porting/liteos_m/kernel/src/internal/
H A Dfloatscan.c63 static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int pok) in decfloat() argument
140 if (!x[0]) return sign * 0.0; in decfloat()
144 return sign * (long double)x[0]; in decfloat()
147 return sign * LDBL_MAX * LDBL_MAX; in decfloat()
151 return sign * LDBL_MIN * LDBL_MIN; in decfloat()
168 if (rp == 9) return sign * (long double)x[0]; in decfloat()
169 if (rp < 9) return sign * (long double)x[0] / p10s[8-rp]; in decfloat()
172 return sign * (long double)x[0] * p10s[rp-10]; in decfloat()
263 y *= sign; in decfloat()
284 frac += 0.25*sign; in decfloat()
314 hexfloat(FILE *f, int bits, int emin, int sign, int pok) hexfloat() argument
428 int sign = 1; __floatscan() local
[all...]
/third_party/musl/porting/uniproton/kernel/src/internal/
H A Dfloatscan.c63 static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int pok) in decfloat() argument
140 if (!x[0]) return sign * 0.0; in decfloat()
144 return sign * (long double)x[0]; in decfloat()
147 return sign * LDBL_MAX * LDBL_MAX; in decfloat()
151 return sign * LDBL_MIN * LDBL_MIN; in decfloat()
168 if (rp == 9) return sign * (long double)x[0]; in decfloat()
169 if (rp < 9) return sign * (long double)x[0] / p10s[8-rp]; in decfloat()
172 return sign * (long double)x[0] * p10s[rp-10]; in decfloat()
263 y *= sign; in decfloat()
284 frac += 0.25*sign; in decfloat()
314 hexfloat(FILE *f, int bits, int emin, int sign, int pok) hexfloat() argument
428 int sign = 1; __floatscan() local
[all...]
/third_party/musl/src/internal/
H A Dfloatscan.c63 static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int pok) in decfloat() argument
140 if (!x[0]) return sign * 0.0; in decfloat()
144 return sign * (long double)x[0]; in decfloat()
147 return sign * LDBL_MAX * LDBL_MAX; in decfloat()
151 return sign * LDBL_MIN * LDBL_MIN; in decfloat()
168 if (rp == 9) return sign * (long double)x[0]; in decfloat()
169 if (rp < 9) return sign * (long double)x[0] / p10s[8-rp]; in decfloat()
172 return sign * (long double)x[0] * p10s[rp-10]; in decfloat()
263 y *= sign; in decfloat()
284 frac += 0.25*sign; in decfloat()
314 hexfloat(FILE *f, int bits, int emin, int sign, int pok) hexfloat() argument
428 int sign = 1; __floatscan() local
[all...]
/third_party/vixl/src/
H A Dutils-vixl.cc148 internal::SimFloat16 Float16Pack(uint16_t sign, in Float16Pack() argument
151 uint16_t bits = (sign << 15) | (exp << 10) | mantissa; in Float16Pack()
156 float FloatPack(uint32_t sign, uint32_t exp, uint32_t mantissa) { in FloatPack() argument
157 uint32_t bits = (sign << 31) | (exp << 23) | mantissa; in FloatPack()
162 double DoublePack(uint64_t sign, uint64_t exp, uint64_t mantissa) { in DoublePack() argument
163 uint64_t bits = (sign << 63) | (exp << 52) | mantissa; in DoublePack()
270 uint32_t sign = bits >> 15; in FPToFloat() local
280 return (sign == 0) ? 0.0f : -0.0f; in FPToFloat()
283 return (sign == 0) ? kFP32PositiveInfinity : kFP32NegativeInfinity; in FPToFloat()
308 // - The sign i in FPToFloat()
358 uint32_t sign = raw >> 63; FPToFloat() local
380 uint32_t sign = raw >> 63; FPToFloat() local
422 uint64_t sign = raw >> 31; FPToDouble() local
456 int32_t sign = raw >> 31; FPToFloat16() local
511 int32_t sign = raw >> 63; FPToFloat16() local
[all...]
/third_party/jerryscript/jerry-libm/
H A Dsqrt.c107 int sign = (int) 0x80000000; in sqrt() local
122 if (((ix0 & (~sign)) | ix1) == 0) /* sqrt(+-0) = +-0 */ in sqrt()
153 ix0 += ix0 + ((ix1 & sign) >> 31); in sqrt()
159 ix0 += ix0 + ((ix1 & sign) >> 31); in sqrt()
173 ix0 += ix0 + ((ix1 & sign) >> 31); in sqrt()
178 r = sign; in sqrt()
186 if (((t1 & sign) == sign) && (s1 & sign) == 0) in sqrt()
198 ix0 += ix0 + ((ix1 & sign) >> 3 in sqrt()
[all...]
/third_party/musl/porting/liteos_m/kernel/src/math/
H A Dsqrt.c86 int32_t sign = (int)0x80000000; in sqrt() local
98 if (((ix0&~sign)|ix1) == 0) in sqrt()
120 ix0 += ix0 + ((ix1&sign)>>31); in sqrt()
126 ix0 += ix0 + ((ix1&sign)>>31); in sqrt()
138 ix0 += ix0 + ((ix1&sign)>>31); in sqrt()
143 r = sign; in sqrt()
149 if ((t1&sign) == sign && (s1&sign) == 0) in sqrt()
157 ix0 += ix0 + ((ix1&sign)>>3 in sqrt()
[all...]
/third_party/node/deps/v8/src/objects/
H A Dbigint.cc85 Isolate* isolate, Handle<BigIntBase> x, bool sign,
97 static Handle<BigInt> RightShiftByMaximum(Isolate* isolate, bool sign);
125 inline void initialize_bitfield(bool sign, int length) { in initialize_bitfield() argument
126 int32_t bitfield = LengthBits::encode(length) | SignBits::encode(sign); in initialize_bitfield()
204 bool sign = value < 0; in NewFromInt() local
205 result->initialize_bitfield(sign, 1); in NewFromInt()
206 if (!sign) { in NewFromInt()
223 bool sign = value < 0; // -0 was already handled above. in NewFromDouble()
233 result->initialize_bitfield(sign, digits); in NewFromDouble()
359 result->set_sign(!x->sign()); in UnaryMinus()
929 const bool sign = bigint->sign(); ToString() local
1195 AbsoluteAddOne( Isolate* isolate, Handle<BigIntBase> x, bool sign, MutableBigInt result_storage) AbsoluteAddOne() argument
1267 const bool sign = x->sign(); RightShiftByAbsolute() local
1286 RightShiftByMaximum(Isolate* isolate, bool sign) RightShiftByMaximum() argument
1374 bool sign = SignBits::decode(bitfield); FromSerializedDigits() local
1455 bool sign = n < 0; FromInt64() local
[all...]
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Djnf.c22 int nm1, sign, i; in jnf() local
26 sign = ix>>31; in jnf()
37 sign ^= 1; in jnf()
43 sign &= n; /* even n: 0, odd n: signbit(x) */ in jnf()
159 return sign ? -b : b; in jnf()
165 int nm1, sign, i; in ynf() local
169 sign = ix>>31; in ynf()
173 if (sign && ix != 0) /* x < 0 */ in ynf()
182 sign = n&1; in ynf()
185 sign in ynf()
[all...]
/third_party/musl/src/math/
H A Djnf.c22 int nm1, sign, i; in jnf() local
26 sign = ix>>31; in jnf()
37 sign ^= 1; in jnf()
43 sign &= n; /* even n: 0, odd n: signbit(x) */ in jnf()
159 return sign ? -b : b; in jnf()
165 int nm1, sign, i; in ynf() local
169 sign = ix>>31; in ynf()
173 if (sign && ix != 0) /* x < 0 */ in ynf()
182 sign = n&1; in ynf()
185 sign in ynf()
[all...]

Completed in 12 milliseconds

12345678910>>...41