Home | History | Annotate | Download | only in webkit

Lines Matching full:valuebits

157 for (var valueBits = 8; valueBits <= 128; valueBits++) {
158 debug("bits used to store value: " + valueBits);
159 var max = Math.pow(2, valueBits - 1) - 1;
160 var min = -Math.pow(2, valueBits - 1);
161 shouldBe("min.toString()", answers[valueBits-8][0]);
162 shouldBe("(min - 1).toString()", answers[valueBits-8][1]);
163 shouldBe("max.toString()", answers[valueBits-8][2]);
164 shouldBe("(max + 1).toString()", answers[valueBits-8][3]);