Lines Matching refs:int32_t

178     static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1;
180 static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1;
185 EXPECT_FALSE(IsInt<int32_t>(1, -2)); in TEST()
186 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
187 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
188 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
189 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
190 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
191 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
192 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
193 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
194 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
195 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
196 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
208 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
209 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
210 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
211 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
220 static_assert(!IsInt<1, int32_t>(-2), "TestIsInt32#1");
221 static_assert(IsInt<1, int32_t>(-1), "TestIsInt32#2");
222 static_assert(IsInt<1, int32_t>(0), "TestIsInt32#3");
223 static_assert(!IsInt<1, int32_t>(1), "TestIsInt32#4");
224 static_assert(!IsInt<4, int32_t>(-9), "TestIsInt32#5");
225 static_assert(IsInt<4, int32_t>(-8), "TestIsInt32#6");
226 static_assert(IsInt<4, int32_t>(7), "TestIsInt32#7");
227 static_assert(!IsInt<4, int32_t>(8), "TestIsInt32#8");
228 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#9");
229 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#10");
230 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#11");
231 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#12");
241 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#9");
242 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#10");
243 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#11");
244 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#12");
252 static_assert(!IsUint<1, int32_t>(-1), "TestIsUint32#1");
253 static_assert(IsUint<1, int32_t>(0), "TestIsUint32#2");
254 static_assert(IsUint<1, int32_t>(1), "TestIsUint32#3");
255 static_assert(!IsUint<1, int32_t>(2), "TestIsUint32#4");
256 static_assert(!IsUint<4, int32_t>(-1), "TestIsUint32#5");
257 static_assert(IsUint<4, int32_t>(0), "TestIsUint32#6");
258 static_assert(IsUint<4, int32_t>(15), "TestIsUint32#7");
259 static_assert(!IsUint<4, int32_t>(16), "TestIsUint32#8");
260 static_assert(!IsUint<30, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsUint32#9");
261 static_assert(IsUint<31, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsUint32#10");
262 static_assert(!IsUint<32, int32_t>(-1), "TestIsUint32#11");
263 static_assert(IsUint<32, int32_t>(0), "TestIsUint32#11");
274 static_assert(!IsUint<30, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsUint64#9");
275 static_assert(IsUint<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsUint64#10");
282 static_assert(!IsAbsoluteUint<1, int32_t>(-2), "TestIsAbsoluteUint32#1");
283 static_assert(IsAbsoluteUint<1, int32_t>(-1), "TestIsAbsoluteUint32#2");
284 static_assert(IsAbsoluteUint<1, int32_t>(0), "TestIsAbsoluteUint32#3");
285 static_assert(IsAbsoluteUint<1, int32_t>(1), "TestIsAbsoluteUint32#4");
286 static_assert(!IsAbsoluteUint<1, int32_t>(2), "TestIsAbsoluteUint32#5");
287 static_assert(!IsAbsoluteUint<4, int32_t>(-16), "TestIsAbsoluteUint32#6");
288 static_assert(IsAbsoluteUint<4, int32_t>(-15), "TestIsAbsoluteUint32#7");
289 static_assert(IsAbsoluteUint<4, int32_t>(0), "TestIsAbsoluteUint32#8");
290 static_assert(IsAbsoluteUint<4, int32_t>(15), "TestIsAbsoluteUint32#9");
291 static_assert(!IsAbsoluteUint<4, int32_t>(16), "TestIsAbsoluteUint32#10");
292 static_assert(!IsAbsoluteUint<30, int32_t>(std::numeric_limits<int32_t>::max()),
294 static_assert(IsAbsoluteUint<31, int32_t>(std::numeric_limits<int32_t>::max()),
296 static_assert(!IsAbsoluteUint<31, int32_t>(std::numeric_limits<int32_t>::min()),
298 static_assert(IsAbsoluteUint<31, int32_t>(std::numeric_limits<int32_t>::min() + 1),
300 static_assert(IsAbsoluteUint<32, int32_t>(std::numeric_limits<int32_t>::max()),
302 static_assert(IsAbsoluteUint<32, int32_t>(std::numeric_limits<int32_t>::min()),
304 static_assert(IsAbsoluteUint<32, int32_t>(0), "TestIsAbsoluteUint32#17");
316 static_assert(!IsAbsoluteUint<30, int64_t>(std::numeric_limits<int32_t>::max()),
318 static_assert(IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::max()),
320 static_assert(!IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::min()),
322 static_assert(IsAbsoluteUint<31, int64_t>(std::numeric_limits<int32_t>::min() + 1),
324 static_assert(IsAbsoluteUint<32, int64_t>(std::numeric_limits<int32_t>::max()),
326 static_assert(IsAbsoluteUint<32, int64_t>(std::numeric_limits<int32_t>::min()),
359 static_assert(BitFieldClear(std::numeric_limits<int32_t>::max(), /*lsb*/0, /*width*/32) == 0x0,
370 static_assert(BitFieldExtract(std::numeric_limits<int32_t>::max(), /*lsb*/0, /*width*/32)
371 == std::numeric_limits<int32_t>::max(),
412 static_assert(BitFieldInsert(std::numeric_limits<int32_t>::max(),