Lines Matching refs:opt
71 $opt$InplaceNegOneInt(1); in main()
74 $opt$InplaceNegOneLong(1L); in main()
81 assertEquals(-1, $opt$NegInt(1)); in negInt()
82 assertEquals(1, $opt$NegInt(-1)); in negInt()
83 assertEquals(0, $opt$NegInt(0)); in negInt()
84 assertEquals(51, $opt$NegInt(-51)); in negInt()
85 assertEquals(-51, $opt$NegInt(51)); in negInt()
86 assertEquals(2147483647, $opt$NegInt(-2147483647)); // -(2^31 - 1) in negInt()
87 assertEquals(-2147483647, $opt$NegInt(2147483647)); // 2^31 - 1 in negInt()
98 assertEquals(-2147483648, $opt$NegInt(-2147483648)); // -(2^31) in negInt()
101 private static void $opt$InplaceNegOneInt(int a) { in $opt$InplaceNegOneInt()
107 assertEquals(-1L, $opt$NegLong(1L)); in negLong()
108 assertEquals(1L, $opt$NegLong(-1L)); in negLong()
109 assertEquals(0L, $opt$NegLong(0L)); in negLong()
110 assertEquals(51L, $opt$NegLong(-51L)); in negLong()
111 assertEquals(-51L, $opt$NegLong(51L)); in negLong()
113 assertEquals(2147483647L, $opt$NegLong(-2147483647L)); // -(2^31 - 1) in negLong()
114 assertEquals(-2147483647L, $opt$NegLong(2147483647L)); // (2^31 - 1) in negLong()
115 assertEquals(2147483648L, $opt$NegLong(-2147483648L)); // -(2^31) in negLong()
116 assertEquals(-2147483648L, $opt$NegLong(2147483648L)); // 2^31 in negLong()
118 assertEquals(9223372036854775807L, $opt$NegLong(-9223372036854775807L)); // -(2^63 - 1) in negLong()
119 assertEquals(-9223372036854775807L, $opt$NegLong(9223372036854775807L)); // 2^63 - 1 in negLong()
122 assertEquals(-9223372036854775808L, $opt$NegLong(-9223372036854775808L)); // -(2^63) in negLong()
125 private static void $opt$InplaceNegOneLong(long a) { in $opt$InplaceNegOneLong()
131 assertEquals("-0.0", $opt$NegFloat(0F)); in negFloat()
132 assertEquals("0.0", $opt$NegFloat(-0F)); in negFloat()
133 assertEquals(-1F, $opt$NegFloat(1F)); in negFloat()
134 assertEquals(1F, $opt$NegFloat(-1F)); in negFloat()
135 assertEquals(51F, $opt$NegFloat(-51F)); in negFloat()
136 assertEquals(-51F, $opt$NegFloat(51F)); in negFloat()
138 assertEquals(-0.1F, $opt$NegFloat(0.1F)); in negFloat()
139 assertEquals(0.1F, $opt$NegFloat(-0.1F)); in negFloat()
140 assertEquals(343597.38362F, $opt$NegFloat(-343597.38362F)); in negFloat()
141 assertEquals(-343597.38362F, $opt$NegFloat(343597.38362F)); in negFloat()
143 assertEquals(-Float.MIN_NORMAL, $opt$NegFloat(Float.MIN_NORMAL)); in negFloat()
144 assertEquals(Float.MIN_NORMAL, $opt$NegFloat(-Float.MIN_NORMAL)); in negFloat()
145 assertEquals(-Float.MIN_VALUE, $opt$NegFloat(Float.MIN_VALUE)); in negFloat()
146 assertEquals(Float.MIN_VALUE, $opt$NegFloat(-Float.MIN_VALUE)); in negFloat()
147 assertEquals(-Float.MAX_VALUE, $opt$NegFloat(Float.MAX_VALUE)); in negFloat()
148 assertEquals(Float.MAX_VALUE, $opt$NegFloat(-Float.MAX_VALUE)); in negFloat()
150 assertEquals(Float.NEGATIVE_INFINITY, $opt$NegFloat(Float.POSITIVE_INFINITY)); in negFloat()
151 assertEquals(Float.POSITIVE_INFINITY, $opt$NegFloat(Float.NEGATIVE_INFINITY)); in negFloat()
152 assertIsNaN($opt$NegFloat(Float.NaN)); in negFloat()
156 assertEquals("-0.0", $opt$NegDouble(0D)); in negDouble()
157 assertEquals("0.0", $opt$NegDouble(-0D)); in negDouble()
158 assertEquals(-1D, $opt$NegDouble(1D)); in negDouble()
159 assertEquals(1D, $opt$NegDouble(-1D)); in negDouble()
160 assertEquals(51D, $opt$NegDouble(-51D)); in negDouble()
161 assertEquals(-51D, $opt$NegDouble(51D)); in negDouble()
163 assertEquals(-0.1D, $opt$NegDouble(0.1D)); in negDouble()
164 assertEquals(0.1D, $opt$NegDouble(-0.1D)); in negDouble()
165 assertEquals(343597.38362D, $opt$NegDouble(-343597.38362D)); in negDouble()
166 assertEquals(-343597.38362D, $opt$NegDouble(343597.38362D)); in negDouble()
168 assertEquals(-Double.MIN_NORMAL, $opt$NegDouble(Double.MIN_NORMAL)); in negDouble()
169 assertEquals(Double.MIN_NORMAL, $opt$NegDouble(-Double.MIN_NORMAL)); in negDouble()
170 assertEquals(-Double.MIN_VALUE, $opt$NegDouble(Double.MIN_VALUE)); in negDouble()
171 assertEquals(Double.MIN_VALUE, $opt$NegDouble(-Double.MIN_VALUE)); in negDouble()
172 assertEquals(-Double.MAX_VALUE, $opt$NegDouble(Double.MAX_VALUE)); in negDouble()
173 assertEquals(Double.MAX_VALUE, $opt$NegDouble(-Double.MAX_VALUE)); in negDouble()
175 assertEquals(Double.NEGATIVE_INFINITY, $opt$NegDouble(Double.POSITIVE_INFINITY)); in negDouble()
176 assertEquals(Double.POSITIVE_INFINITY, $opt$NegDouble(Double.NEGATIVE_INFINITY)); in negDouble()
177 assertIsNaN($opt$NegDouble(Double.NaN)); in negDouble()
180 static int $opt$NegInt(int a){ in $opt$NegInt()
184 static long $opt$NegLong(long a){ in $opt$NegLong()
188 static float $opt$NegFloat(float a){ in $opt$NegFloat()
192 static double $opt$NegDouble(double a){ in $opt$NegDouble()