/external/pdfium/third_party/bigint/ |
D | BigInteger.cc | 14 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 …]
|
D | BigInteger.hh | 33 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/v8/test/mjsunit/es6/ |
D | math-sign.js | 28 assertEquals("Infinity", String(1/Math.sign(0))); 29 assertEquals("-Infinity", String(1/Math.sign(-0))); 30 assertEquals(1, Math.sign(100)); 31 assertEquals(-1, Math.sign(-199)); 32 assertEquals(1, Math.sign(100.1)); 33 assertTrue(isNaN(Math.sign("abc"))); 34 assertTrue(isNaN(Math.sign({}))); 35 assertEquals(0, Math.sign([])); 36 assertEquals(1, Math.sign([1])); 37 assertEquals(-1, Math.sign([-100.1])); [all …]
|
D | math-fround.js | 57 if (mantissa_23_bits == 0 && mantissa_29_bits == 0) return sign * Infinity; 62 var sign = this.sign_bit ? -1 : 1; 67 return sign * Math.pow(2, exponent) * mantissa; 71 var sign = this.sign_bit ? -1 : 1; 74 if (exponent > 127) return sign * Infinity; 75 if (exponent < -126) return this.toSingleSubnormal(sign, exponent); 78 return sign * Math.pow(2, exponent) * mantissa; 81 ieee754float.prototype.toSingleSubnormal = function(sign, exponent) { argument 83 if (shift > 24) return sign * 0; 97 return sign * Math.pow(2, -126) * mantissa; [all …]
|
/external/v8/test/cctest/ |
D | test-dtoa.cc | 64 int sign; in TEST() local 66 DoubleToAscii(0.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST() 70 DoubleToAscii(0.0, DTOA_FIXED, 2, buffer, &sign, &length, &point); in TEST() 75 DoubleToAscii(0.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point); in TEST() 80 DoubleToAscii(1.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST() 84 DoubleToAscii(1.0, DTOA_FIXED, 3, buffer, &sign, &length, &point); in TEST() 90 DoubleToAscii(1.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point); in TEST() 96 DoubleToAscii(1.5, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); in TEST() 100 DoubleToAscii(1.5, DTOA_FIXED, 10, buffer, &sign, &length, &point); in TEST() 106 DoubleToAscii(1.5, DTOA_PRECISION, 10, buffer, &sign, &length, &point); in TEST() [all …]
|
/external/deqp/framework/delibs/debase/ |
D | deFloat16.c | 30 int sign; in deFloat32To16() local 40 sign = (x.i >> 16) & 0x00008000; in deFloat32To16() 49 return (deFloat16) sign; in deFloat32To16() 64 return (deFloat16) (sign | mantissa); in deFloat32To16() 71 return (deFloat16) (sign | 0x7c00); in deFloat32To16() 77 return (deFloat16) (sign | 0x7c00 | mantissa | (mantissa == 0)); in deFloat32To16() 95 return (deFloat16) (sign | 0x7c00); in deFloat32To16() 98 return (deFloat16) (sign | (expotent << 10) | (mantissa >> 13)); in deFloat32To16() 104 int sign; in deFloat16To32() local 115 sign = ((int) val16 >> 15) & 0x00000001; in deFloat16To32() [all …]
|
/external/valgrind/memcheck/tests/ppc32/ |
D | power_ISA2_05.stdout.exp_Without_FPPO | 2 fcpsgn sign=10.101010, base=11.111111 => 11.111111 3 fcpsgn sign=10.101010, base=-0.000000 => 0.000000 4 fcpsgn sign=10.101010, base=0.000000 => 0.000000 5 fcpsgn sign=10.101010, base=-11.111111 => 11.111111 6 fcpsgn sign=-0.000000, base=11.111111 => -11.111111 7 fcpsgn sign=-0.000000, base=-0.000000 => -0.000000 8 fcpsgn sign=-0.000000, base=0.000000 => -0.000000 9 fcpsgn sign=-0.000000, base=-11.111111 => -11.111111 10 fcpsgn sign=0.000000, base=11.111111 => 11.111111 11 fcpsgn sign=0.000000, base=-0.000000 => 0.000000 [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/ |
D | Dfp.java | 167 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/ |
D | tcuFloat.hpp | 88 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); 184 …ntBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::zero (int sign) in zero() argument 186 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in zero() 187 return Float(StorageType((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits))); in zero() 191 …entBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::inf (int sign) in inf() argument 193 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in inf() [all …]
|
/external/valgrind/memcheck/tests/ppc64/ |
D | power_ISA2_05.stdout.exp_Without_FPPO | 3 fcpsgn sign=10.101010, base=11.111111 => 11.111111 4 fcpsgn sign=10.101010, base=-0.000000 => 0.000000 5 fcpsgn sign=10.101010, base=0.000000 => 0.000000 6 fcpsgn sign=10.101010, base=-11.111111 => 11.111111 7 fcpsgn sign=-0.000000, base=11.111111 => -11.111111 8 fcpsgn sign=-0.000000, base=-0.000000 => -0.000000 9 fcpsgn sign=-0.000000, base=0.000000 => -0.000000 10 fcpsgn sign=-0.000000, base=-11.111111 => -11.111111 11 fcpsgn sign=0.000000, base=11.111111 => 11.111111 12 fcpsgn sign=0.000000, base=-0.000000 => 0.000000 [all …]
|
/external/fdlibm/ |
D | e_sqrt.c | 99 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/aac/libAACenc/src/ |
D | bit_cnt.cpp | 784 INT sign,signLength; in FDKaacEnc_codeValues() local 816 sign=0; in FDKaacEnc_codeValues() 821 sign<<=1; in FDKaacEnc_codeValues() 823 sign|=1; in FDKaacEnc_codeValues() 830 sign<<=1; in FDKaacEnc_codeValues() 832 sign|=1; in FDKaacEnc_codeValues() 839 sign<<=1; in FDKaacEnc_codeValues() 841 sign|=1; in FDKaacEnc_codeValues() 848 sign<<=1; in FDKaacEnc_codeValues() 850 sign|=1; in FDKaacEnc_codeValues() [all …]
|
/external/mesa3d/src/glsl/builtins/ir/ |
D | sign.ir | 1 ((function sign 5 ((return (expression float sign (var_ref x))))) 10 ((return (expression vec2 sign (var_ref x))))) 15 ((return (expression vec3 sign (var_ref x))))) 20 ((return (expression vec4 sign (var_ref x))))) 25 ((return (expression int sign (var_ref x))))) 30 ((return (expression ivec2 sign (var_ref x))))) 35 ((return (expression ivec3 sign (var_ref x))))) 40 ((return (expression ivec4 sign (var_ref x)))))
|
/external/nanopb-c/examples/using_double_on_avr/ |
D | double_conversion.c | 20 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/ |
D | ihevc_trans_macros.h | 40 …WORD32 sign; … 51 …sign = (inp)<0 ? -1:1; … 58 …tmp = tmp * sign; … 65 …WORD32 sign; … 76 …sign = (inp)<0 ? -1:1; … 83 …tmp = tmp * sign; … 90 …WORD32 sign; … 101 …sign = (inp)<0 ? -1:1; … 108 …tmp = tmp * sign; … 115 …WORD32 sign; … [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/ |
D | pos_format.pass.cpp | 67 assert(p.field[1] == std::money_base::sign); in main() 75 assert(p.field[1] == std::money_base::sign); in main() 83 assert(p.field[1] == std::money_base::sign); in main() 91 assert(p.field[1] == std::money_base::sign); in main() 99 assert(p.field[0] == std::money_base::sign); in main() 107 assert(p.field[0] == std::money_base::sign); in main() 115 assert(p.field[0] == std::money_base::sign); in main() 123 assert(p.field[0] == std::money_base::sign); in main() 132 assert(p.field[0] == std::money_base::sign); in main() 140 assert(p.field[0] == std::money_base::sign); in main() [all …]
|
D | neg_format.pass.cpp | 67 assert(p.field[1] == std::money_base::sign); in main() 75 assert(p.field[1] == std::money_base::sign); in main() 83 assert(p.field[1] == std::money_base::sign); in main() 91 assert(p.field[1] == std::money_base::sign); in main() 99 assert(p.field[0] == std::money_base::sign); in main() 107 assert(p.field[0] == std::money_base::sign); in main() 115 assert(p.field[0] == std::money_base::sign); in main() 123 assert(p.field[0] == std::money_base::sign); in main() 132 assert(p.field[0] == std::money_base::sign); in main() 140 assert(p.field[0] == std::money_base::sign); in main() [all …]
|
/external/valgrind/VEX/switchback/ |
D | test_emfloat.c | 510 u8 sign; /* Mantissa sign */ member 524 uchar sign); 526 uchar sign); 691 uchar sign) in SetInternalFPFZero() argument 696 dest->sign=sign; in SetInternalFPFZero() 711 uchar sign) in SetInternalFPFInfinity() argument 716 dest->sign=sign; in SetInternalFPFInfinity() 736 dest->sign=1; in SetInternalFPFNaN() 958 SetInternalFPFZero(ptr, ptr->sign); in denormalize() 1085 if (x->sign ^ y->sign ^ operation) in AddSubInternalFPF() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_setup_line.c | 261 static INLINE boolean sign(float x){ in sign() function 358 else if (sign(x1diff) == sign(-dx)) { in try_setup_line() 361 else if (sign(-y1diff) != sign(dy)) { in try_setup_line() 377 else if (sign(x2diff) != sign(-dx)) { in try_setup_line() 380 else if (sign(-y2diff) == sign(dy)) { in try_setup_line() 391 will_draw_start = sign(-x1diff) != sign(dx); in try_setup_line() 392 will_draw_end = (sign(x2diff) == sign(-dx)) || x2diff==0; in try_setup_line() 456 else if (sign(-y1diff) == sign(dy)) { in try_setup_line() 459 else if (sign(x1diff) != sign(-dx)) { in try_setup_line() 474 else if (sign(-y2diff) != sign(dy) ) { in try_setup_line() [all …]
|
/external/valgrind/VEX/useful/ |
D | fp_80_64.c | 107 UChar sign; in convert_f64le_to_f80le() local 109 sign = toUChar( (f64[7] >> 7) & 1 ); in convert_f64le_to_f80le() 130 f80[9] = toUChar( sign << 7 ); in convert_f64le_to_f80le() 161 f80[9] = toUChar( (sign << 7) | ((bexp >> 8) & 0xFF) ); in convert_f64le_to_f80le() 178 f80[9] = toUChar( (sign << 7) | 0x7F ); in convert_f64le_to_f80le() 196 f80[9] = toUChar( (sign << 7) | 0x7F ); in convert_f64le_to_f80le() 205 f80[9] = toUChar( (sign << 7) | 0x7F ); in convert_f64le_to_f80le() 219 f80[9] = toUChar( (sign << 7) | ((bexp >> 8) & 0xFF) ); in convert_f64le_to_f80le() 248 UChar sign; in convert_f80le_to_f64le() local 250 sign = toUChar((f80[9] >> 7) & 1); in convert_f80le_to_f64le() [all …]
|
/external/skia/gm/ |
D | addarc.cpp | 37 SkScalar sign = 1; in onDraw() local 43 startAngle += fRotate * 360 * speed * sign; in onDraw() 50 sign = -sign; in onDraw() 142 SkScalar sign = 1; in onDraw() local 145 canvas->rotate(fRotate * sign); in onDraw() 150 sign = -sign; in onDraw() 207 SkScalar sign = 1; in onDraw() local 211 sign = -1; in onDraw() 213 SkScalar startAngle = startAngles[i % SK_ARRAY_COUNT(startAngles)] * sign; in onDraw() 218 html_canvas_arc(&path, 18, 15, 10, startAngle, startAngle + (sweepAngles[j] * sign), in onDraw()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | ASN1GeneralizedTime.java | 180 char sign = stime.charAt(signPos); in getTime() local 181 if (sign == '-' || sign == '+') in getTime() 192 sign = stime.charAt(signPos); in getTime() 193 if (sign == '-' || sign == '+') in getTime() 207 String sign = "+"; in calculateGMTOffset() local 212 sign = "-"; in calculateGMTOffset() 222 hours += sign.equals("+") ? 1 : -1; in calculateGMTOffset() 230 return "GMT" + sign + convert(hours) + ":" + convert(minutes); in calculateGMTOffset()
|
/external/llvm/test/Transforms/InstCombine/ |
D | apint-add1.ll | 10 ;; Add of sign bit -> xor of sign bit. 17 ;; Add of sign bit -> xor of sign bit. 24 ;; Add of sign bit -> xor of sign bit.
|
/external/openssh/openbsd-compat/ |
D | fmt_scaled.c | 79 int sign = 0; in scan_scaled() local 90 if (sign) { in scan_scaled() 94 sign = -1; in scan_scaled() 97 if (sign) { in scan_scaled() 101 sign = +1; in scan_scaled() 139 if (sign) { in scan_scaled() 140 whole *= sign; in scan_scaled() 141 fpart *= sign; in scan_scaled()
|
/external/llvm/lib/Support/ |
D | APFloat.cpp | 597 sign = rhs.sign; in assign() 620 sign = Negative; in makeNaN() 693 sign = rhs.sign; in operator =() 773 sign != rhs.sign) in bitwiseIsEqual() 793 sign = 0; in APFloat() 804 sign = false; in APFloat() 1202 (rounding_mode == rmTowardPositive && !sign) || in handleOverflow() 1203 (rounding_mode == rmTowardNegative && sign)) { in handleOverflow() 1251 return !sign; in roundAwayFromZero() 1254 return sign; in roundAwayFromZero() [all …]
|