Lines Matching full:divisor
32 function ConstructDiv(divisor) {
33 return "return ((dividend | 0) / ((" + divisor + ") | 0)) | 0";
37 new Function("dividend", "divisor", ConstructDiv("divisor"));
43 function ConstructMod(divisor) {
44 return "return ((dividend | 0) % ((" + divisor + ") | 0)) | 0";
48 new Function("dividend", "divisor", ConstructMod("divisor"));
54 function ConstructFlooringDiv(divisor) {
55 return "return Math.floor(dividend / (" + divisor + ")) | 0";
59 new Function("dividend", "divisor", ConstructFlooringDiv("divisor"));
105 function TestDivisionLike(ref, construct, values, divisor) {
107 var OptFun = new Function("dividend", construct(divisor));
117 if (dividend === -2147483648 && divisor === -1) return;
118 assertEquals(ref(dividend, divisor), OptFun(dividend));
127 values.forEach(function(divisor) {
128 TestDivisionLike(ref, construct, values, divisor);