Lines Matching refs:round64
29 private static long round64(double d) { in round64() method in Main
114 expectEquals64(-9223372036854775808L, round64(Double.NEGATIVE_INFINITY)); in main()
115 expectEquals64(-2L, round64(-1.51d)); in main()
116 expectEquals64(-1L, round64(-1.2d)); in main()
117 expectEquals64(-1L, round64(-1.0d)); in main()
118 expectEquals64(-1L, round64(-0.5000001f)); in main()
119 expectEquals64(0L, round64(-0.5d)); in main()
120 expectEquals64(0L, round64(-0.2d)); in main()
121 expectEquals64(0L, round64(-0.0d)); in main()
122 expectEquals64(0L, round64(+0.0d)); in main()
123 expectEquals64(0L, round64(+0.2d)); in main()
124 expectEquals64(1L, round64(+0.5d)); in main()
125 expectEquals64(1L, round64(+1.0d)); in main()
126 expectEquals64(1L, round64(+1.2d)); in main()
127 expectEquals64(2L, round64(+1.5d)); in main()
128 expectEquals64(9223372036854775807L, round64(Double.POSITIVE_INFINITY)); in main()
132 round64(Math.nextAfter(-9223372036854775808.0, Double.NEGATIVE_INFINITY))); in main()
133 expectEquals64(-9223372036854775808L, round64(-9223372036854775808.0)); in main()
135 round64(Math.nextAfter(-9223372036854775809.0, Double.POSITIVE_INFINITY))); in main()
139 round64(Math.nextAfter(9223372036854775808.0, Double.NEGATIVE_INFINITY))); in main()
140 expectEquals64(9223372036854775807L, round64(9223372036854775808.0)); in main()
142 round64(Math.nextAfter(9223372036854775808.0, Double.POSITIVE_INFINITY))); in main()
146 expectEquals64(l - 1, round64((double) l - 0.51d)); in main()
147 expectEquals64(l, round64((double) l - 0.5d)); in main()
148 expectEquals64(l, round64((double) l)); in main()
149 expectEquals64(l + 1, round64((double) l + 0.5d)); in main()
150 expectEquals64(l + 1, round64((double) l + 0.51d)); in main()
153 expectEquals64(-1L, round64(d)); in main()
178 expectEquals64(lvals[i], round64(dvals[i])); in main()
193 expectEquals64(0L, round64(dnans[i])); in main()