/third_party/decimal.js/test/modules/ |
D | divToInt.js | 5 function t(dividend, divisor, expected) { function 18 t('0', '1', '0e+0'); 19 t('1', '3', '0e+0'); 20 t('5', '2', '2e+0'); 21 t('5', '3', '1e+0'); 22 t('36895644873019582.63', '7.718100793996604914489691733070282', '4.780404643292329e+15'); 23 …t('64651655727943229435811115735289253096959446020560124180.868366968824689', '7360719838491229774… 24 …t('5732393766279203252222389165296003290.63682245014985462079498107494454', '604416262214131.25541… 25 …t('54718351636204349658226278525013052787257592035681265.6551696525453015879627795539', '173377873… 26 …t('3624502246404620098804280609381269252487775685790155421714.37', '734904354791888080445820911952… [all …]
|
D | div.js | 14 var t = function (expected, dividend, divisor) { function 19 t(false, 1, Infinity); 20 t(true, 1, -Infinity); 21 t(true, -1, Infinity); 22 t(false, -1, -Infinity); 23 t(false, 0, 1); 24 t(true, 0, -1); 25 t(true, -0, 1); 26 t(false, -0, -1); 27 t(false, 0, Infinity); [all …]
|
D | plus.js | 5 var t = function (addendA, addendB, expected) { function 18 t(1, 0, '1'); 19 t(1, -0, '1'); 20 t(-1, 0, '-1'); 21 t(-1, -0, '-1'); 22 t(1, 'NaN', 'NaN'); 23 t(-1, 'NaN', 'NaN'); 24 t(1, 'Infinity', 'Infinity'); 25 t(1, '-Infinity', '-Infinity'); 26 t(-1, 'Infinity', 'Infinity'); [all …]
|
D | times.js | 5 var t = function (multiplicand, multiplier, expected) { function 18 t(1, NaN, 'NaN'); 19 t(-1, NaN, 'NaN'); 20 t(1, Infinity, 'Infinity'); 21 t(1, -Infinity, '-Infinity'); 22 t(-1, Infinity, '-Infinity'); 23 t(-1, -Infinity, 'Infinity'); 24 t(0, 'NaN', 'NaN'); 25 t(-0, 'NaN', 'NaN'); 26 t(0, 'Infinity', 'NaN'); [all …]
|
D | mod.js | 5 var t = function (a, b, expected, sd, rm) { function 19 t(1, 0, 'NaN'); 20 t(1, -0, 'NaN'); 21 t(-1, 0, 'NaN'); 22 t(-1, -0, 'NaN'); 23 t(1, 'NaN', 'NaN'); 24 t(-1, 'NaN', 'NaN'); 25 t(1, 'Infinity', '1'); 26 t(1, '-Infinity', '1'); 27 t(-1, 'Infinity', '-1'); [all …]
|
D | minus.js | 5 var t = function (minuend, subtrahend, expected) { function 18 t(1, 0, '1'); 19 t(1, -0, '1'); 20 t(-1, 0, '-1'); 21 t(-1, -0, '-1'); 22 t(1, 'NaN', 'NaN'); 23 t(-1, 'NaN', 'NaN'); 24 t(1, 'Infinity', '-Infinity'); 25 t(1, '-Infinity', 'Infinity'); 26 t(-1, 'Infinity', '-Infinity'); [all …]
|
D | cmp.js | 7 function t(a, b, expected) { function 20 t(1, 0, 1); 21 t(1, -0, 1); 22 t(-1, 0, -1); 23 t(-1, -0, -1); 24 t(0, 1, -1); 25 t(0, -1, 1); 26 t(-0, 1, -1); 27 t(-0, -1, 1); 28 t(0, 0, 0); [all …]
|
D | round.js | 5 function t(expected, n, rm) { function 19 t('Infinity', 'Infinity', 4); 20 t('-Infinity', '-Infinity', 4); 21 t('NaN', 'NaN', 4); 23 t('0', '0', 4); 24 t('-0', '-0', 4); 25 t('1', '1', 4); 26 t('-1', '-1', 4); 27 t('0', '0.1', 4); 28 t('-0', '-0.1', 4); [all …]
|
D | log10.js | 5 function t(n, expected, sd, rm) { function 20 t('4841183675443663188762.78', '2.16849516e+1', 9, 0); 21 t('2.2001084261754258861227E-824263894', '-8.242638936575559156644572542921e+8', 31, 6); 22 t('9.841678323183423382979E+889', '8.8999306917e+2', 11, 2); 23 t('6.674865349047819300515860303037383179383821E-556564097058', '-6e+11', 1, 4); 24 t('8.45466498447465675136763E+70601305204', '7.07e+10', 3, 2); 25 …t('4.0697767991474535745859451E+8734161', '8.7341616095705916437228490323670178068211817e+6', 44, … 26 t('6.70979951730012416235067887E-4547', '-4.546173290455960817819339e+3', 25, 5); 27 t('1.961351051236741863413961315199797E+4394416', '4.3944162925e+6', 11, 1); 28 t('1.20350E+4555', '4.55508044609461104879595186822027e+3', 33, 1); [all …]
|
D | sqrt.js | 5 function t(expected, n, sd, rm) { function 20 t('NaN', NaN, 20, 4); 21 t('2', 4, 20, 4); 22 t('0.1', 0.01, 20, 4); 23 t('0', 0, 20, 4); 24 t('-0', -0, 20, 4); 25 t('0', '0', 20, 4); 26 t('-0', '-0', 20, 4); 28 t('Infinity', Infinity, 20, 4); 29 t('NaN', -Infinity, 20, 4); [all …]
|
D | ln.js | 5 function t(n, expected, sd, rm) { function 21 t('0', String(Math.log(0)), 40, 4); 22 t('-0', String('-Infinity'), 40, 4); 23 t('-0', String(Math.log(-0)), 40, 4); 24 t('1', '0', 40, 4); 25 t('1', String(Math.log(1)), 40, 4); 26 t('-Infinity', 'NaN', 40, 4); 27 t('-Infinity', String(Math.log(-Infinity)), 40, 4); 28 t('Infinity', 'Infinity', 40, 4); 29 t('Infinity', String(Math.log(Infinity)), 40, 4); [all …]
|
D | intPow.js | 6 function t(expected, n, exp) { function 25 t('4', 2, 2); 26 t('2147483648', 2, 31); 27 t('0.25', 2, -2); 28 t('0.0625', 2, -4); 29 t('1', 1, 100); 30 t('0', 0, 1000); 32 t('NaN', 2, NaN); 33 t('NaN', +0, NaN); 34 t('NaN', -0, NaN); [all …]
|
D | toSD.js | 5 function t(expected, n, sd, rm) { function 24 t('0', 0); 25 t('0.5', 0.5); 26 t('1', 1); 27 t('-1', -1); 28 t('Infinity', Infinity); 29 t('-Infinity', -Infinity); 30 t('NaN', NaN); 32 t('0', '0', 1); 33 t('-0', '-0', 1); [all …]
|
D | toString.js | 5 function t(expected, n) { function 18 t('0', 0); 19 t('0', '0'); 20 t('NaN', NaN); 21 t('NaN', 'NaN'); 22 t('Infinity', 1/0); 23 t('Infinity', 'Infinity'); 24 t('1', 1); 25 t('9', 9); 26 t('90', 90); [all …]
|
D | toBinary.js | 5 var t = function (expected, n, sd, rm) { function 18 t('NaN', NaN, 20, 4); 19 t('NaN', 'NaN', 20, 4); 20 t('Infinity', Infinity, 20, 4); 21 t('-Infinity', -Infinity, 20, 4); 22 t('Infinity', 'Infinity', 20, 4); 23 t('-Infinity', '-Infinity', 20, 4); 27 t('0b11111111111111111111111111111111', '4294967295', 32, 4); 28 t('0b100000000000000000000000000000000', '4294967296', 33, 4); 29 t('0b100000000000000000000000000000001', '4294967297', 33, 4); [all …]
|
D | toDP.js | 5 function t(expected, n, dp, rm) { function 24 t('0', 0); 25 t('-1', -1); 26 t('9.999e+9000000000000000', '9.999e+9000000000000000'); 27 t('-9.999e+9000000000000000', '-9.999e+9000000000000000'); 28 t('1e-9000000000000000', '1e-9000000000000000'); 29 t('-1e-9000000000000000', '-1e-9000000000000000'); 30 t('Infinity', Infinity); 31 t('-Infinity', -Infinity); 32 t('NaN', NaN); [all …]
|
D | toFixed.js | 5 function t(expected, n, dp) { function 22 t('100.0', 99.9512986, 1); 23 t('10.0', 9.95036, 1); 24 t('1.0', 0.99, 1); 25 t('0.10', 0.09906, 2); 26 t('0.010', 0.0098034, 3); 28 t('NaN', NaN, 2); 29 t('Infinity', 1/0, 2); 30 t('-Infinity', -1/0, 2); 32 t('1111111111111111111111.00000000', '1111111111111111111111', 8); [all …]
|
D | toExponential.js | 5 function t(expected, n, dp) { function 22 t('1e+0', 1); 23 t('1.1e+1', 11); 24 t('1.12e+2', 112); 26 t('1e+0', 1, 0); 27 t('1e+1', 11, 0); 28 t('1e+2', 112, 0); 29 t('1.0e+0', 1, 1); 30 t('1.1e+1', 11, 1); 31 t('1.1e+2', 112, 1); [all …]
|
D | toPrecision.js | 5 function t(expected, n, sd, rm) { function 24 t('1e+27', '1.2345e+27', 1); 25 t('1.2e+27', '1.2345e+27', 2); 26 t('1.23e+27', '1.2345e+27', 3); 27 t('1.235e+27', '1.2345e+27', 4); 28 t('1.2345e+27', '1.2345e+27', 5); 29 t('1.23450e+27', '1.2345e+27', 6); 30 t('1.234500e+27', '1.2345e+27', 7); 32 t('-1e+27', '-1.2345e+27', 1); 33 t('-1.2e+27', '-1.2345e+27', 2); [all …]
|
D | toHex.js | 5 var t = function (expected, n, sd, rm) { function 18 t('NaN', NaN, 20, 4); 19 t('NaN', 'NaN', 20, 4); 20 t('Infinity', Infinity, 20, 4); 21 t('-Infinity', -Infinity, 20, 4); 22 t('Infinity', 'Infinity', 20, 4); 23 t('-Infinity', '-Infinity', 20, 4); 27 t('0x0', '0', 1, 4); 28 t('0x9', '9', 1, 4); 29 t('0x5a', '90', 2, 4); [all …]
|
D | toOctal.js | 5 var t = function (expected, n, sd, rm) { function 18 t('NaN', NaN, 20, 4); 19 t('NaN', 'NaN', 20, 4); 20 t('Infinity', Infinity, 20, 4); 21 t('-Infinity', -Infinity, 20, 4); 22 t('Infinity', 'Infinity', 20, 4); 23 t('-Infinity', '-Infinity', 20, 4); 27 t('0o0', '0', 1, 4); 28 …t('0o171634571716400543513334300705612071133717535572246575453160', '36458466733518382898722177527… 29 t('0o17140110747560', '1043696177008', 14, 4); [all …]
|
D | neg.js | 5 function t(expected, n) { function 18 t('-4', 4); 19 t('-2147483648', 2147483648); 20 t('-0.25', 0.25); 21 t('-0.0625', 0.0625); 22 t('-1', 1); 23 t('1', -1); 24 t('-0', 0); 25 t('0', -0); 26 t('-0', '0'); [all …]
|
D | log.js | 5 function t(n, base, expected, sd, rm) { function 26 t('0', '10', '-Infinity', 40, 4); 27 t('-0', '10', '-Infinity', 40, 4); 28 t('1', '10', '0', 40, 4); 29 t('-1', '10', 'NaN', 40, 4); 30 t('Infinity', '10', 'Infinity', 40, 4); 31 t('Infinity', '0', 'NaN', 40, 4); 32 t('-Infinity', 'Infinity', 'NaN', 40, 4); 33 t('NaN', '10', 'NaN', 40, 4); 35 t('1', '0', 'NaN', 40, 4); // Math.log(1) / Math.log(0) == -0 [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | LocaleFallbackData.java | 21 Map<String, String> t = new HashMap<>(); in buildDefaultScriptTable() local 22 t.put("ab", "Cyrl"); in buildDefaultScriptTable() 23 t.put("abq", "Cyrl"); in buildDefaultScriptTable() 24 t.put("adp", "Tibt"); in buildDefaultScriptTable() 25 t.put("ady", "Cyrl"); in buildDefaultScriptTable() 26 t.put("ae", "Avst"); in buildDefaultScriptTable() 27 t.put("aeb", "Arab"); in buildDefaultScriptTable() 28 t.put("aho", "Ahom"); in buildDefaultScriptTable() 29 t.put("ajt", "Arab"); in buildDefaultScriptTable() 30 t.put("akk", "Xsux"); in buildDefaultScriptTable() [all …]
|
/third_party/musl/libc-test/src/math/gen/ |
D | mplibm.c | 3 static int mpf1(struct t *s, float (*f)(float)) in mpf1() 12 static int mpf2(struct t *s, float (*f)(float,float)) in mpf2() 21 static int mpd1(struct t *s, double (*f)(double)) in mpd1() 30 static int mpd2(struct t *s, double (*f)(double, double)) in mpd2() 39 static int mpl1(struct t *s, long double (*f)(long double)) in mpl1() 48 static int mpl2(struct t *s, long double (*f)(long double, long double)) in mpl2() 58 int mpsinpi(struct t *t) { return mpd1(t, sinpi); } in mpsinpi() argument 61 #define OP(n,op,t) static t n(t x, t y) { t z = x op y; return z; } argument 71 int mpadd(struct t *t) { return mpd2(t, add); } in mpadd() argument 72 int mpaddf(struct t *t) { return mpf2(t, addf); } in mpaddf() argument [all …]
|