Lines Matching refs:numeric_limits
34 T max = std::numeric_limits<T>::max(); in test()
40 assert(std::countl_one(max) == std::numeric_limits<T>::digits); in test()
41 assert(std::countl_one(T(max - 1)) == std::numeric_limits<T>::digits - 1); in test()
42 assert(std::countl_one(T(max - 2)) == std::numeric_limits<T>::digits - 2); in test()
43 assert(std::countl_one(T(max - 3)) == std::numeric_limits<T>::digits - 2); in test()
44 assert(std::countl_one(T(max - 4)) == std::numeric_limits<T>::digits - 3); in test()
45 assert(std::countl_one(T(max - 5)) == std::numeric_limits<T>::digits - 3); in test()
46 assert(std::countl_one(T(max - 6)) == std::numeric_limits<T>::digits - 3); in test()
47 assert(std::countl_one(T(max - 7)) == std::numeric_limits<T>::digits - 3); in test()
48 assert(std::countl_one(T(max - 8)) == std::numeric_limits<T>::digits - 4); in test()
49 assert(std::countl_one(T(max - 9)) == std::numeric_limits<T>::digits - 4); in test()
50 assert(std::countl_one(T(max - 126)) == std::numeric_limits<T>::digits - 7); in test()
51 assert(std::countl_one(T(max - 127)) == std::numeric_limits<T>::digits - 7); in test()
52 assert(std::countl_one(T(max - 128)) == std::numeric_limits<T>::digits - 8); in test()