gcc/libstdc++-v3/testsuite/26_numerics/bit
Jonathan Wakely 2fb17d2d90 Avoid undefined shifts in ceil2 operations
For values where the result cannot be represented the shift width would
be equal to the width of the type, which is undefined. Perform two
well-defined shifts instead of one possible undefined shift.

	* include/bits/hashtable_policy.h (__clp2): Fix calculation for LLP64
	targets where sizeof(size_t) > sizeof(long). Avoid undefined shifts
	of the number of bits in the type.
	* include/std/bit (__ceil2): Avoid undefined shifts.
	* testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Test values with
	the most signifiant bit set.

From-SVN: r263986
2018-08-30 16:07:35 +01:00
..
bit.pow.two Avoid undefined shifts in ceil2 operations 2018-08-30 16:07:35 +01:00
bitops.count Remove redundant { dg-do run } directives in tests 2018-08-21 10:34:26 +01:00
bitops.rot