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

1234567891011>>

/external/chromium_org/v8/test/mjsunit/es6/
H A Dmath-sign.js28 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([
[all...]
H A Dmath-fround.js57 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) {
83 if (shift > 24) return sign * 0;
97 return sign * Mat
[all...]
/external/chromium_org/chrome/renderer/resources/extensions/enterprise_platform_keys/
H A Dinternal_api.js11 exports.sign = binding.sign;
/external/deqp/framework/delibs/debase/
H A DdeFloat16.c30 int sign; local
40 sign = (x.i >> 16) & 0x00008000;
49 return (deFloat16) sign;
64 return (deFloat16) (sign | mantissa);
71 return (deFloat16) (sign | 0x7c00);
77 return (deFloat16) (sign | 0x7c00 | mantissa | (mantissa == 0));
95 return (deFloat16) (sign | 0x7c00);
98 return (deFloat16) (sign | (expotent << 10) | (mantissa >> 13));
104 int sign; local
115 sign
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DAbstractECMultiplier.java9 int sign = k.signum();
10 if (sign == 0 || p.isInfinity())
16 return sign > 0 ? positive : positive.negate();
/external/compiler-rt/lib/builtins/
H A Dfixdfsi.c26 // Break a into sign, exponent, significand
29 const int sign = aRep & signBit ? -1 : 1; local
35 return sign * (significand >> (significandBits - exponent));
48 return sign * (significand << (exponent - significandBits));
H A Dfixsfsi.c23 // Break a into sign, exponent, significand
26 const int sign = aRep & signBit ? -1 : 1; local
32 return sign * (significand >> (significandBits - exponent));
45 return sign * (significand << (exponent - significandBits));
H A Dfloatsidf.c32 // All other cases begin by extracting the sign and absolute value of a
33 rep_t sign = 0;
35 sign = signBit;
51 // Insert the sign bit and return
52 return fromRep(result | sign);
H A Dfloatsisf.c32 // All other cases begin by extracting the sign and absolute value of a
33 rep_t sign = 0;
35 sign = signBit;
57 // Insert the sign bit and return
58 return fromRep(result | sign);
/external/nanopb-c/examples/using_double_on_avr/
H A Ddouble_conversion.c12 * Single precision: sign, 8-bit exp, 23-bit frac.
13 * Double precision: sign, 11-bit exp, 52-bit frac.
20 uint8_t sign; local
25 sign = (in.i >> 31) & 1;
57 mantissa |= (uint64_t)sign << 63;
64 uint8_t sign; local
70 sign = (value >> 63) & 1;
83 if (sign)
91 if (sign)
118 out.i |= (uint32_t)sign << 3
[all...]
/external/iputils/
H A DAndroid.mk6 LOCAL_CFLAGS := -DWITHOUT_IFADDRS -Wno-sign-compare
10 LOCAL_CFLAGS := -DWITHOUT_IFADDRS -Wno-sign-compare
18 LOCAL_CFLAGS := -Wno-sign-compare
25 LOCAL_CFLAGS := -Wno-sign-compare
32 LOCAL_CFLAGS := -Wno-sign-compare
/external/chromium_org/v8/test/cctest/
H A Dtest-dtoa.cc64 int sign; local
66 DoubleToAscii(0.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
70 DoubleToAscii(0.0, DTOA_FIXED, 2, buffer, &sign, &length, &point);
75 DoubleToAscii(0.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point);
80 DoubleToAscii(1.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
84 DoubleToAscii(1.0, DTOA_FIXED, 3, buffer, &sign, &length, &point);
90 DoubleToAscii(1.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point);
96 DoubleToAscii(1.5, DTOA_SHORTEST, 0, buffer, &sign, &length, &point);
100 DoubleToAscii(1.5, DTOA_FIXED, 10, buffer, &sign, &length, &point);
106 DoubleToAscii(1.5, DTOA_PRECISION, 10, buffer, &sign,
270 int sign; local
290 int sign; local
313 int sign; local
[all...]
/external/stlport/src/
H A Dnum_put_float.cpp216 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) argument
217 { return ecvtbuf(x, n, pt, sign, buf); }
218 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) argument
219 { return fcvtbuf(x, n, pt, sign, buf); }
224 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) argument
225 { return ecvtbuf(x, n, pt, sign, buf); }
226 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) argument
227 { return fcvtbuf(x, n, pt, sign, buf); }
231 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
232 { return ecvt_r(x, n, pt, sign, bu
233 _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
236 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
238 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
243 _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) argument
245 _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) argument
248 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) argument
250 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) argument
254 _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
256 _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
260 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
262 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize) argument
267 _Stl_ecvtR(double x, int n, int* pt, int* sign) argument
269 _Stl_fcvtR(double x, int n, int* pt, int* sign) argument
272 _Stl_ecvtR(long double x, int n, int* pt, int* sign) argument
274 _Stl_fcvtR(long double x, int n, int* pt, int* sign) argument
280 _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) argument
282 _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) argument
285 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) argument
287 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) argument
323 _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) argument
325 _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) argument
328 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) argument
330 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) argument
337 _Stl_ecvtR(double x, int n, int* pt, int* sign) argument
339 _Stl_fcvtR(double x, int n, int* pt, int* sign) argument
342 _Stl_ecvtR(long double x, int n, int* pt, int* sign) argument
344 _Stl_fcvtR(long double x, int n, int* pt, int* sign) argument
360 _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) argument
364 _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) argument
369 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) argument
373 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) argument
379 _Stl_ecvtR(double x, int n, int* pt, int* sign, char*) argument
381 _Stl_fcvtR(double x, int n, int* pt, int* sign, char*) argument
384 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char*) argument
386 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char*) argument
402 _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) argument
442 _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) argument
487 __format_float_scientific( __iostring& buf, const char *bp, int decpt, int sign, bool is_zero, ios_base::fmtflags flags, int precision) argument
550 __format_float_fixed( __iostring &buf, const char *bp, int decpt, int sign, ios_base::fmtflags flags, int precision) argument
651 __format_float(__iostring &buf, const char * bp, int decpt, int sign, bool is_zero, ios_base::fmtflags flags, int precision) argument
862 int decpt, sign; local
[all...]
/external/chromium_org/base/third_party/dmg_fp/
H A Ddmg_fp.h19 int* decpt, int* sign, char** rve);
/external/fdlibm/
H A 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)>>3
[all...]
/external/chromium_org/chrome/installer/mac/
H A Dsign_versioned_dir.sh.in7 # Using codesign, sign the contents of the versioned directory. Namely, this
52 codesign --sign "${codesign_id}" --keychain "${codesign_keychain}" \
56 codesign --sign "${codesign_id}" --keychain "${codesign_keychain}" \
60 codesign --sign "${codesign_id}" --keychain "${codesign_keychain}" \
64 codesign --sign "${codesign_id}" --keychain "${codesign_keychain}" \
/external/chromium_org/third_party/skia/src/core/
H A DSkMathPriv.h23 /** If sign == -1, returns -n, else sign must be 0, and returns n.
26 static inline int32_t SkApplySign(int32_t n, int32_t sign) { argument
27 SkASSERT(sign == 0 || sign == -1);
28 return (n ^ sign) - sign;
31 /** Return x with the sign of y */
/external/skia/src/core/
H A DSkMathPriv.h17 /** If sign == -1, returns -n, else sign must be 0, and returns n.
20 static inline int32_t SkApplySign(int32_t n, int32_t sign) { argument
21 SkASSERT(sign == 0 || sign == -1);
22 return (n ^ sign) - sign;
25 /** Return x with the sign of y */
/external/deqp/framework/common/
H A DtcuFloat.hpp73 * \param sign Sign. Must be +1/-1
88 static inline Float construct (int sign, int exponent, StorageType mantissa);
92 * \param sign Sign. Must be +1/-1
99 * The sign is turned into a sign bit and the exponent bias is added.
103 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
113 inline int sign (void) const { return signBit() ? -1 : 1; } function in class:tcu::Float
122 static Float zero (int sign);
123 static Float inf (int sign);
184 inline Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::zero (int sign) argument
191 inf(int sign) argument
205 construct(int sign, int exponent, StorageType mantissa) argument
226 constructBits(int sign, int exponent, StorageType mantissaBits) argument
[all...]
/external/apache-harmony/security/src/test/impl/java.injected/java/security/
H A DSignature_Impl1Test.java34 * Class under test for int sign(byte[], int, int)
40 s.sign(b, 0, 5);
48 s.sign(b, 0, 5);
54 s.sign(b, 0, 5);
56 assertTrue("sign() failed", s.runEngineSign);
/external/libcxx/test/utilities/meta/meta.trans/meta.trans.sign/
H A DAndroid.mk17 test_makefile := external/libcxx/test/utilities/meta/meta.trans/meta.trans.sign/Android.mk
19 test_name := utilities/meta/meta.trans/meta.trans.sign/make_signed
23 test_name := utilities/meta/meta.trans/meta.trans.sign/make_unsigned
/external/libhevc/common/
H A Dihevc_trans_macros.h40 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/iptables/libiptc/
H A DAndroid.mk14 LOCAL_CFLAGS += -Wno-pointer-arith -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign
38 LOCAL_CFLAGS += -Wno-pointer-arith -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign
/external/qemu/distrib/sdl-1.2.15/src/video/
H A 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)>>3
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_half.h53 uint32_t sign; local
63 sign = f32.ui & sign_mask;
64 f32.ui ^= sign;
86 f16 |= sign >> 16;

Completed in 545 milliseconds

1234567891011>>