Home
last modified time | relevance | path

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

12345678910>>...95

/external/pdfium/third_party/bigint/
DBigInteger.cc14 sign = x.sign; in operator =()
24 sign = zero; in BigInteger()
29 sign = mag.isZero() ? zero : s; in BigInteger()
43 sign = zero; in BigInteger()
48 sign = mag.isZero() ? zero : s; in BigInteger()
62 BigInteger::BigInteger(unsigned long x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
63 BigInteger::BigInteger(unsigned int x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
64 BigInteger::BigInteger(unsigned short x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
83 BigInteger::BigInteger(long x) : sign(signOf(x)), mag(magOf<long , unsigned long >(x)) {} in BigInteger()
84 BigInteger::BigInteger(int x) : sign(signOf(x)), mag(magOf<int , unsigned int >(x)) {} in BigInteger()
[all …]
DBigInteger.hh33 Sign sign; member in BigInteger
38 BigInteger() : sign(zero), mag() {} in BigInteger()
41 BigInteger(const BigInteger &x) : sign(x.sign), mag(x.mag) {}; in BigInteger()
51 sign = mag.isZero() ? zero : positive; in BigInteger()
59 sign = mag.isZero() ? zero : positive; in BigInteger()
86 Sign getSign() const { return sign; } in getSign()
95 bool isZero() const { return sign == zero; } // A bit special in isZero()
104 return sign == x.sign && mag == x.mag; in operator ==()
222 sign = Sign(-sign); in flipSign()
/external/deqp/framework/delibs/debase/
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 = (x.u >> 48u) & 0x00008000u; in deFloat64To16()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfp.java167 protected byte sign; field in Dfp
183 sign = 1; in Dfp()
226 sign = -1; in Dfp()
229 sign = 1; in Dfp()
260 sign = 1; in Dfp()
288 sign = (byte) 1; in Dfp()
291 sign = (byte) -1; in Dfp()
294 sign = (byte) 1; in Dfp()
309 sign = xdfp.sign; in Dfp()
320 sign = d.sign; in Dfp()
[all …]
/external/deqp/framework/common/
DtcuFloat.hpp88 static inline Float construct (int sign, int exponent, StorageType mantissa);
103 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
113 inline int sign (void) const { return signBit() ? -1 : 1; } in sign() function in tcu::Float
122 static Float zero (int sign);
123 static Float inf (int sign);
186 …ntBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::zero (int sign) in zero() argument
188 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in zero()
189 return Float(StorageType((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits))); in zero()
193 …entBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::inf (int sign) in inf() argument
195 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in inf()
[all …]
/external/arm-optimized-routines/math/
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 ? -1.0f : 1.0f) / 0.0f; in __math_divzerof()
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 ? -1.0 : 1.0) / 0.0; in __math_divzero()
/external/vixl/src/
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()
330 return RawbitsToFloat((sign << 31) | (exponent << kFloatMantissaBits) | in FPToFloat()
[all …]
/external/arm-optimized-routines/test/rtest/
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 = a[0] & 0x80000000; /* we discard sign of b */ in test_fmod()
198 am[0] |= sign; in test_fmod()
205 int sign; in test_fmodf() local
[all …]
/external/fdlibm/
De_sqrt.c99 int sign = (int)0x80000000; local
113 if(((ix0&(~sign))|ix1)==0) return x;/* ieee_sqrt(+-0) = +-0 */
132 ix0 += ix0 + ((ix1&sign)>>31);
138 ix0 += ix0 + ((ix1&sign)>>31);
150 ix0 += ix0 + ((ix1&sign)>>31);
155 r = sign;
161 if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1;
167 ix0 += ix0 + ((ix1&sign)>>31);
187 if ((q&1)==1) ix1 |= sign;
/external/libvpx/libvpx/vpx_dsp/x86/
Dhighbd_inv_txfm_sse2.h66 __m128i *const sign /*sign[2]*/) { in abs_extend_64bit_sse2() argument
67 sign[0] = _mm_srai_epi32(in, 31); in abs_extend_64bit_sse2()
68 out[0] = _mm_xor_si128(in, sign[0]); in abs_extend_64bit_sse2()
69 out[0] = _mm_sub_epi32(out[0], sign[0]); in abs_extend_64bit_sse2()
70 sign[1] = _mm_unpackhi_epi32(sign[0], sign[0]); // 64-bit sign of 2, 3 in abs_extend_64bit_sse2()
71 sign[0] = _mm_unpacklo_epi32(sign[0], sign[0]); // 64-bit sign of 0, 1 in abs_extend_64bit_sse2()
78 const __m128i sign, in multiply_apply_sign_sse2() argument
81 out = _mm_xor_si128(out, sign); in multiply_apply_sign_sse2()
82 return _mm_sub_epi64(out, sign); in multiply_apply_sign_sse2()
87 const __m128i *const in /*in[2]*/, const __m128i *const sign /*sign[2]*/, in multiplication_round_shift_sse2() argument
[all …]
/external/grpc-grpc/third_party/nanopb/examples/using_double_on_avr/
Ddouble_conversion.c20 uint8_t sign; in float_to_double() local
25 sign = (in.i >> 31) & 1; in float_to_double()
57 mantissa |= (uint64_t)sign << 63; in float_to_double()
64 uint8_t sign; in double_to_float() local
70 sign = (value >> 63) & 1; in double_to_float()
83 if (sign) in double_to_float()
91 if (sign) in double_to_float()
118 out.i |= (uint32_t)sign << 31; in double_to_float()
/external/nanopb-c/examples/using_double_on_avr/
Ddouble_conversion.c20 uint8_t sign; in float_to_double() local
25 sign = (in.i >> 31) & 1; in float_to_double()
57 mantissa |= (uint64_t)sign << 63; in float_to_double()
64 uint8_t sign; in double_to_float() local
70 sign = (value >> 63) & 1; in double_to_float()
83 if (sign) in double_to_float()
91 if (sign) in double_to_float()
118 out.i |= (uint32_t)sign << 31; in double_to_float()
/external/libhevc/common/
Dihevc_trans_macros.h40 …WORD32 sign; …
51sign = (inp)<0 ? -1:1; …
58 …tmp = tmp * sign; …
65 …WORD32 sign; …
76sign = (inp)<0 ? -1:1; …
83 …tmp = tmp * sign; …
90 …WORD32 sign; …
101sign = (inp)<0 ? -1:1; …
108 …tmp = tmp * sign; …
115 …WORD32 sign; …
[all …]
/external/icu/icu4c/source/i18n/
Ddouble-conversion.cpp186 bool sign;
192 &sign, &decimal_rep_length, &decimal_point);
195 if (sign && (value != 0.0 || !unique_zero)) {
229 bool sign;
237 &sign, &decimal_rep_length, &decimal_point);
240 if (sign && (value != 0.0 || !unique_zero)) {
262 bool sign;
272 &sign, &decimal_rep_length, &decimal_point);
276 &sign, &decimal_rep_length, &decimal_point);
286 if (sign && (value != 0.0 || !unique_zero)) {
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/
Dneg_format.pass.cpp70 assert(p.field[1] == std::money_base::sign); in main()
78 assert(p.field[1] == std::money_base::sign); in main()
86 assert(p.field[1] == std::money_base::sign); in main()
94 assert(p.field[1] == std::money_base::sign); in main()
102 assert(p.field[0] == std::money_base::sign); in main()
110 assert(p.field[0] == std::money_base::sign); in main()
118 assert(p.field[0] == std::money_base::sign); in main()
126 assert(p.field[0] == std::money_base::sign); in main()
135 assert(p.field[0] == std::money_base::sign); in main()
143 assert(p.field[0] == std::money_base::sign); in main()
[all …]
Dpos_format.pass.cpp70 assert(p.field[1] == std::money_base::sign); in main()
78 assert(p.field[1] == std::money_base::sign); in main()
86 assert(p.field[1] == std::money_base::sign); in main()
94 assert(p.field[1] == std::money_base::sign); in main()
102 assert(p.field[0] == std::money_base::sign); in main()
110 assert(p.field[0] == std::money_base::sign); in main()
118 assert(p.field[0] == std::money_base::sign); in main()
126 assert(p.field[0] == std::money_base::sign); in main()
135 assert(p.field[0] == std::money_base::sign); in main()
143 assert(p.field[0] == std::money_base::sign); in main()
[all …]
/external/protobuf/js/binary/
Dutils.js92 var sign = (value < 0);
102 if (sign) {
125 var sign = (value < 0);
134 if (sign) {
159 var sign = (value < 0) ? 1 : 0;
160 value = sign ? -value : value;
188 jspb.utils.split64Low = ((sign << 31) | (0x7F800000)) >>> 0;
197 jspb.utils.split64Low = ((sign << 31) | mant) >>> 0;
206 jspb.utils.split64Low = ((sign << 31) | ((exp + 127) << 23) | mant) >>> 0;
216 var sign = (value < 0) ? 1 : 0;
[all …]
/external/skqp/gm/
Daddarc.cpp38 SkScalar sign = 1; in onDraw() local
44 startAngle += fRotate * 360 * speed * sign; in onDraw()
51 sign = -sign; in onDraw()
129 SkScalar sign = 1; in onDraw() local
132 canvas->rotate(fRotate * sign); in onDraw()
137 sign = -sign; in onDraw()
183 SkScalar sign = 1; in onDraw() local
186 canvas->rotate(fRotate * sign); in onDraw()
190 sign = -sign; in onDraw()
241 SkScalar sign = 1; variable
[all …]
/external/skia/gm/
Daddarc.cpp38 SkScalar sign = 1; in onDraw() local
44 startAngle += fRotate * 360 * speed * sign; in onDraw()
51 sign = -sign; in onDraw()
129 SkScalar sign = 1; in onDraw() local
132 canvas->rotate(fRotate * sign); in onDraw()
137 sign = -sign; in onDraw()
183 SkScalar sign = 1; in onDraw() local
186 canvas->rotate(fRotate * sign); in onDraw()
190 sign = -sign; in onDraw()
241 SkScalar sign = 1; variable
[all …]
/external/python/cpython3/Modules/_decimal/libmpdec/
Dnumbertheory.c48 _mpd_getkernel(mpd_uint_t n, int sign, int modnum) in _mpd_getkernel() argument
61 if (sign == -1) in _mpd_getkernel()
74 _mpd_init_fnt_params(mpd_size_t n, int sign, int modnum) in _mpd_init_fnt_params() argument
87 assert(sign == -1 || sign == 1); in _mpd_init_fnt_params()
97 kernel = _mpd_getkernel(n, sign, modnum); in _mpd_init_fnt_params()
115 _mpd_init_w3table(mpd_uint_t w3table[3], int sign, int modnum) in _mpd_init_w3table() argument
125 kernel = _mpd_getkernel(3, sign, modnum); in _mpd_init_w3table()
/external/boringssl/src/crypto/pkcs7/
Dpkcs7_x509.c239 ret->d.sign = OPENSSL_malloc(sizeof(PKCS7_SIGNED)); in pkcs7_new()
240 if (ret->d.sign == NULL) { in pkcs7_new()
243 ret->d.sign->cert = sk_X509_new_null(); in pkcs7_new()
244 ret->d.sign->crl = sk_X509_CRL_new_null(); in pkcs7_new()
246 if (ret->d.sign->cert == NULL || ret->d.sign->crl == NULL || in pkcs7_new()
247 !PKCS7_get_certificates(ret->d.sign->cert, &copy) || in pkcs7_new()
248 !PKCS7_get_CRLs(ret->d.sign->crl, cbs)) { in pkcs7_new()
252 if (sk_X509_num(ret->d.sign->cert) == 0) { in pkcs7_new()
253 sk_X509_free(ret->d.sign->cert); in pkcs7_new()
254 ret->d.sign->cert = NULL; in pkcs7_new()
[all …]
/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpgfpec_prod.c92 Ipp8u digit, sign; in gfec_point_prod() local
103 booth_recode(&sign, &digit, (Ipp8u)wvalue, window_size); in gfec_point_prod()
112 booth_recode(&sign, &digit, (Ipp8u)wvalue, window_size); in gfec_point_prod()
126 booth_recode(&sign, &digit, (Ipp8u)wvalue, window_size); in gfec_point_prod()
130 cpMaskedReplace_ct(pHdata+elemLen, pHy, elemLen, ~cpIsZero_ct(sign)); in gfec_point_prod()
135 booth_recode(&sign, &digit, (Ipp8u)wvalue, window_size); in gfec_point_prod()
139 cpMaskedReplace_ct(pHdata+elemLen, pHy, elemLen, ~cpIsZero_ct(sign)); in gfec_point_prod()
151 booth_recode(&sign, &digit, (Ipp8u)wvalue, window_size); in gfec_point_prod()
155 cpMaskedReplace_ct(pHdata+elemLen, pHy, elemLen, ~cpIsZero_ct(sign)); in gfec_point_prod()
160 booth_recode(&sign, &digit, (Ipp8u)wvalue, window_size); in gfec_point_prod()
[all …]
/external/python/cpython2/Python/
Dstrtod.c67 int sign, scale, dotseen; in strtod() local
77 sign = 1; in strtod()
78 if (*sp == '-') sign -= 2, sp++; in strtod()
143 return HUGE*sign; in strtod()
146 if (strcmp(buforg, MDMAXFRAC) > 0) return HUGE*sign; in strtod()
149 return ZERO*sign; in strtod()
152 if (strcmp(buforg, MDMINFRAC) < 0) return ZERO*sign; in strtod()
158 return atof(buffer)*sign; in strtod()
/external/deqp/external/openglcts/modules/common/
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()
79 hf = (((GLhalf)sign) << 15) | (GLhalf)(mantissa); in floatToHalfFloat()
83 hf = (((GLhalf)sign) << 15) | (GLhalf)((exp - HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) >> 13) | in floatToHalfFloat()
104 unsigned int sign = (GLhalf)(x >> 31); in floatToUnisgnedF11() local
115 if (sign > 0) in floatToUnisgnedF11()
185 unsigned int sign = (GLhalf)(x >> 31); in floatToUnisgnedF10() local
196 if (sign > 0) in floatToUnisgnedF10()
254 unsigned int sign = (unsigned int)(hf >> 15); in halfFloatToFloat() local
299 ui = (sign << 31) | exp | mantissa; in halfFloatToFloat()

12345678910>>...95