Home
last modified time | relevance | path

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

12345678910>>...113

/external/chromium_org/v8/test/mjsunit/es6/
Dmath-sign.js30 assertEquals("Infinity", String(1/Math.sign(0)));
31 assertEquals("-Infinity", String(1/Math.sign(-0)));
32 assertEquals(1, Math.sign(100));
33 assertEquals(-1, Math.sign(-199));
34 assertEquals(1, Math.sign(100.1));
35 assertTrue(isNaN(Math.sign("abc")));
36 assertTrue(isNaN(Math.sign({})));
37 assertEquals(0, Math.sign([]));
38 assertEquals(1, Math.sign([1]));
39 assertEquals(-1, Math.sign([-100.1]));
[all …]
Dmath-fround.js39 if (mantissa_23_bits == 0 && mantissa_29_bits == 0) return sign * Infinity;
44 var sign = this.sign_bit ? -1 : 1;
49 return sign * Math.pow(2, exponent) * mantissa;
53 var sign = this.sign_bit ? -1 : 1;
56 if (exponent > 127) return sign * Infinity;
57 if (exponent < -126) return this.toSingleSubnormal(sign, exponent);
60 return sign * Math.pow(2, exponent) * mantissa;
63 ieee754float.prototype.toSingleSubnormal = function(sign, exponent) { argument
65 if (shift > 24) return sign * 0;
79 return sign * Math.pow(2, -126) * mantissa;
[all …]
/external/stlport/src/
Dnum_put_float.cpp216 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) in _Stl_ecvtR() argument
217 { return ecvtbuf(x, n, pt, sign, buf); } in _Stl_ecvtR()
218 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) in _Stl_fcvtR() argument
219 { return fcvtbuf(x, n, pt, sign, buf); } in _Stl_fcvtR()
224 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) in _Stl_ecvtR() argument
225 { return ecvtbuf(x, n, pt, sign, buf); } in _Stl_ecvtR()
226 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) in _Stl_fcvtR() argument
227 { return fcvtbuf(x, n, pt, sign, buf); } in _Stl_fcvtR()
231 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize) in _Stl_ecvtR() argument
232 { return ecvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0; } in _Stl_ecvtR()
[all …]
/external/chromium_org/v8/test/cctest/
Dtest-dtoa.cc64 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/
DdeFloat16.c30 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/main/memcheck/tests/ppc32/
Dpower_ISA2_05.stdout.exp_Without_FPPO2 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/valgrind/main/memcheck/tests/ppc64/
Dpower_ISA2_05.stdout.exp_Without_FPPO3 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/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);
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/chromium_org/third_party/WebKit/Source/wtf/dtoa/
Ddouble-conversion.cc172 bool sign; in ToShortest() local
178 &sign, &decimal_rep_length, &decimal_point); in ToShortest()
181 if (sign && (value != 0.0 || !unique_zero)) { in ToShortest()
215 bool sign; in ToFixed() local
223 &sign, &decimal_rep_length, &decimal_point); in ToFixed()
226 if (sign && (value != 0.0 || !unique_zero)) { in ToFixed()
248 bool sign; in ToExponential() local
258 &sign, &decimal_rep_length, &decimal_point); in ToExponential()
262 &sign, &decimal_rep_length, &decimal_point); in ToExponential()
272 if (sign && (value != 0.0 || !unique_zero)) { in ToExponential()
[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/mesa3d/src/glsl/builtins/ir/
Dsign.ir1 ((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/chromium_org/third_party/mesa/src/src/glsl/builtins/ir/
Dsign.ir1 ((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/
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/aac/libAACenc/src/
Dbit_cnt.cpp784 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/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/qemu/distrib/sdl-1.2.15/src/video/
De_sqrt.h144 int32_t sign = (int)0x80000000; local
157 if(((ix0&(~sign))|ix1)==0) return x;/* sqrt(+-0) = +-0 */
176 ix0 += ix0 + ((ix1&sign)>>31);
182 ix0 += ix0 + ((ix1&sign)>>31);
194 ix0 += ix0 + ((ix1&sign)>>31);
199 r = sign;
205 if(((int32_t)(t1&sign)==sign)&&(s1&sign)==0) s0 += 1;
211 ix0 += ix0 + ((ix1&sign)>>31);
231 if ((q&1)==1) ix1 |= sign;
/external/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct.byname/
Dneg_format.pass.cpp62 assert(p.field[1] == std::money_base::sign); in main()
70 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[0] == 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()
127 assert(p.field[0] == std::money_base::sign); in main()
135 assert(p.field[0] == std::money_base::sign); in main()
[all …]
Dpos_format.pass.cpp62 assert(p.field[1] == std::money_base::sign); in main()
70 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[0] == 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()
127 assert(p.field[0] == std::money_base::sign); in main()
135 assert(p.field[0] == std::money_base::sign); in main()
[all …]
/external/valgrind/main/VEX/switchback/
Dtest_emfloat.c512 u8 sign; /* Mantissa sign */ member
526 uchar sign);
528 uchar sign);
693 uchar sign) in SetInternalFPFZero() argument
698 dest->sign=sign; in SetInternalFPFZero()
713 uchar sign) in SetInternalFPFInfinity() argument
718 dest->sign=sign; in SetInternalFPFInfinity()
738 dest->sign=1; in SetInternalFPFNaN()
960 SetInternalFPFZero(ptr, ptr->sign); in denormalize()
1087 if (x->sign ^ y->sign ^ operation) in AddSubInternalFPF()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/
DDecimal.h77 Sign sign() const { return m_sign; } in sign() function
78 void setSign(Sign sign) { m_sign = sign; } in setSign() argument
130 bool isNegative() const { return sign() == Negative; } in isNegative()
131 bool isPositive() const { return sign() == Positive; } in isPositive()
173 static inline Sign invertSign(Sign sign) { return sign == Negative ? Positive : Negative; } in invertSign() argument
175 Sign sign() const { return m_data.sign(); } in sign() function
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/tests/
Dleb128_test.c34 int sign; member
89 size = yasm_intnum_size_leb128(intn, test->sign); in run_output_test()
93 test->sign?"":"un", test->negate?"-":"", test->input, in run_output_test()
100 size = yasm_intnum_get_leb128(intn, out, test->sign); in run_output_test()
104 test->sign?"":"un", test->negate?"-":"", test->input, in run_output_test()
117 test->sign?"":"un", test->negate?"-":"", test->input); in run_output_test()
138 testn = yasm_intnum_create_leb128(test->result, test->sign, &size); in run_input_test()
143 test->sign?"":"un", test->negate?"-":"", test->input, in run_input_test()
153 test->sign?"":"un", test->negate?"-":"", test->input); in run_input_test()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
Dlp_setup_line.c261 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/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_line.c261 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/main/VEX/useful/
Dfp_80_64.c107 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/llvm/test/Transforms/InstCombine/
Dapint-add1.ll10 ;; 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.

12345678910>>...113