OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:numeric_limits
(Results
1 - 25
of
993
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/libcxx/test/language.support/support.limits/limits/numeric.limits/
default.pass.cpp
10
// test
numeric_limits
12
// The default
numeric_limits
<T> template shall have all members, but with
28
static_assert(std::
numeric_limits
<A>::is_specialized == false,
29
"std::
numeric_limits
<A>::is_specialized == false");
30
assert(std::
numeric_limits
<A>::min() == A());
31
assert(std::
numeric_limits
<A>::max() == A());
32
assert(std::
numeric_limits
<A>::lowest() == A());
33
static_assert(std::
numeric_limits
<A>::digits == 0,
34
"std::
numeric_limits
<A>::digits == 0");
35
static_assert(std::
numeric_limits
<A>::digits10 == 0
[
all
...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits/
default.pass.cpp
10
// test
numeric_limits
12
// The default
numeric_limits
<T> template shall have all members, but with
28
static_assert(std::
numeric_limits
<A>::is_specialized == false,
29
"std::
numeric_limits
<A>::is_specialized == false");
30
assert(std::
numeric_limits
<A>::min() == A());
31
assert(std::
numeric_limits
<A>::max() == A());
32
assert(std::
numeric_limits
<A>::lowest() == A());
33
static_assert(std::
numeric_limits
<A>::digits == 0,
34
"std::
numeric_limits
<A>::digits == 0");
35
static_assert(std::
numeric_limits
<A>::digits10 == 0
[
all
...]
/external/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
digits10.pass.cpp
10
// test
numeric_limits
21
static_assert(std::
numeric_limits
<T>::digits10 == expected, "digits10 test 1");
22
static_assert(std::
numeric_limits
<T>::is_bounded, "digits10 test 5");
23
static_assert(std::
numeric_limits
<const T>::digits10 == expected, "digits10 test 2");
24
static_assert(std::
numeric_limits
<const T>::is_bounded, "digits10 test 6");
25
static_assert(std::
numeric_limits
<volatile T>::digits10 == expected, "digits10 test 3");
26
static_assert(std::
numeric_limits
<volatile T>::is_bounded, "digits10 test 7");
27
static_assert(std::
numeric_limits
<const volatile T>::digits10 == expected, "digits10 test 4");
28
static_assert(std::
numeric_limits
<const volatile T>::is_bounded, "digits10 test 8");
min.pass.cpp
10
// test
numeric_limits
24
assert(std::
numeric_limits
<T>::min() == expected);
25
assert(std::
numeric_limits
<T>::is_bounded || !std::
numeric_limits
<T>::is_signed);
26
assert(std::
numeric_limits
<const T>::min() == expected);
27
assert(std::
numeric_limits
<const T>::is_bounded || !std::
numeric_limits
<const T>::is_signed);
28
assert(std::
numeric_limits
<volatile T>::min() == expected);
29
assert(std::
numeric_limits
<volatile T>::is_bounded || !std::
numeric_limits
<volatile T>::is_signed)
[
all
...]
digits.pass.cpp
10
// test
numeric_limits
21
static_assert(std::
numeric_limits
<T>::digits == expected, "digits test 1");
22
static_assert(std::
numeric_limits
<const T>::digits == expected, "digits test 2");
23
static_assert(std::
numeric_limits
<volatile T>::digits == expected, "digits test 3");
24
static_assert(std::
numeric_limits
<const volatile T>::digits == expected, "digits test 4");
30
test<char, std::
numeric_limits
<char>::is_signed ? 7 : 8>();
33
test<wchar_t, std::
numeric_limits
<wchar_t>::is_signed ? sizeof(wchar_t)*8-1 : sizeof(wchar_t)*8>();
has_denorm_loss.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::has_denorm_loss == expected, "has_denorm_loss test 1");
21
static_assert(std::
numeric_limits
<const T>::has_denorm_loss == expected, "has_denorm_loss test 2");
22
static_assert(std::
numeric_limits
<volatile T>::has_denorm_loss == expected, "has_denorm_loss test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::has_denorm_loss == expected, "has_denorm_loss test 4");
has_infinity.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::has_infinity == expected, "has_infinity test 1");
21
static_assert(std::
numeric_limits
<const T>::has_infinity == expected, "has_infinity test 2");
22
static_assert(std::
numeric_limits
<volatile T>::has_infinity == expected, "has_infinity test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::has_infinity == expected, "has_infinity test 4");
has_quiet_NaN.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::has_quiet_NaN == expected, "has_quiet_NaN test 1");
21
static_assert(std::
numeric_limits
<const T>::has_quiet_NaN == expected, "has_quiet_NaN test 2");
22
static_assert(std::
numeric_limits
<volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 4");
has_signaling_NaN.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::has_signaling_NaN == expected, "has_signaling_NaN test 1");
21
static_assert(std::
numeric_limits
<const T>::has_signaling_NaN == expected, "has_signaling_NaN test 2");
22
static_assert(std::
numeric_limits
<volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 4");
is_bounded.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::is_bounded == expected, "is_bounded test 1");
21
static_assert(std::
numeric_limits
<const T>::is_bounded == expected, "is_bounded test 2");
22
static_assert(std::
numeric_limits
<volatile T>::is_bounded == expected, "is_bounded test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::is_bounded == expected, "is_bounded test 4");
is_exact.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::is_exact == expected, "is_exact test 1");
21
static_assert(std::
numeric_limits
<const T>::is_exact == expected, "is_exact test 2");
22
static_assert(std::
numeric_limits
<volatile T>::is_exact == expected, "is_exact test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::is_exact == expected, "is_exact test 4");
is_integer.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::is_integer == expected, "is_integer test 1");
21
static_assert(std::
numeric_limits
<const T>::is_integer == expected, "is_integer test 2");
22
static_assert(std::
numeric_limits
<volatile T>::is_integer == expected, "is_integer test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::is_integer == expected, "is_integer test 4");
is_modulo.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::is_modulo == expected, "is_modulo test 1");
21
static_assert(std::
numeric_limits
<const T>::is_modulo == expected, "is_modulo test 2");
22
static_assert(std::
numeric_limits
<volatile T>::is_modulo == expected, "is_modulo test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::is_modulo == expected, "is_modulo test 4");
tinyness_before.pass.cpp
10
// test
numeric_limits
20
static_assert(std::
numeric_limits
<T>::tinyness_before == expected, "tinyness_before test 1");
21
static_assert(std::
numeric_limits
<const T>::tinyness_before == expected, "tinyness_before test 2");
22
static_assert(std::
numeric_limits
<volatile T>::tinyness_before == expected, "tinyness_before test 3");
23
static_assert(std::
numeric_limits
<const volatile T>::tinyness_before == expected, "tinyness_before test 4");
/external/protobuf/src/google/protobuf/
generated_message_util.cc
44
return std::
numeric_limits
<double>::infinity();
47
return std::
numeric_limits
<double>::quiet_NaN();
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
digits10.pass.cpp
10
// test
numeric_limits
21
static_assert(std::
numeric_limits
<T>::digits10 == expected, "digits10 test 1");
22
static_assert(std::
numeric_limits
<T>::is_bounded, "digits10 test 5");
23
static_assert(std::
numeric_limits
<const T>::digits10 == expected, "digits10 test 2");
24
static_assert(std::
numeric_limits
<const T>::is_bounded, "digits10 test 6");
25
static_assert(std::
numeric_limits
<volatile T>::digits10 == expected, "digits10 test 3");
26
static_assert(std::
numeric_limits
<volatile T>::is_bounded, "digits10 test 7");
27
static_assert(std::
numeric_limits
<const volatile T>::digits10 == expected, "digits10 test 4");
28
static_assert(std::
numeric_limits
<const volatile T>::is_bounded, "digits10 test 8");
min.pass.cpp
10
// test
numeric_limits
24
assert(std::
numeric_limits
<T>::min() == expected);
25
assert(std::
numeric_limits
<T>::is_bounded || !std::
numeric_limits
<T>::is_signed);
26
assert(std::
numeric_limits
<const T>::min() == expected);
27
assert(std::
numeric_limits
<const T>::is_bounded || !std::
numeric_limits
<const T>::is_signed);
28
assert(std::
numeric_limits
<volatile T>::min() == expected);
29
assert(std::
numeric_limits
<volatile T>::is_bounded || !std::
numeric_limits
<volatile T>::is_signed)
[
all
...]
digits.pass.cpp
10
// test
numeric_limits
21
static_assert(std::
numeric_limits
<T>::digits == expected, "digits test 1");
22
static_assert(std::
numeric_limits
<const T>::digits == expected, "digits test 2");
23
static_assert(std::
numeric_limits
<volatile T>::digits == expected, "digits test 3");
24
static_assert(std::
numeric_limits
<const volatile T>::digits == expected, "digits test 4");
30
test<char, std::
numeric_limits
<char>::is_signed ? 7 : 8>();
33
test<wchar_t, std::
numeric_limits
<wchar_t>::is_signed ? sizeof(wchar_t)*8-1 : sizeof(wchar_t)*8>();
/external/chromium_org/cc/output/
context_provider.cc
12
: max_transfer_buffer_usage_bytes(std::
numeric_limits
<size_t>::max()) {}
/external/chromium_org/ui/gfx/geometry/
safe_integer_conversions.h
18
if (value >= std::
numeric_limits
<int>::max())
19
return std::
numeric_limits
<int>::max();
20
if (value <= std::
numeric_limits
<int>::min())
21
return std::
numeric_limits
<int>::min();
45
if (value > std::
numeric_limits
<int>::max())
47
if (value < std::
numeric_limits
<int>::min())
safe_integer_conversions_unittest.cc
14
EXPECT_EQ(0, ClampToInt(std::
numeric_limits
<float>::quiet_NaN()));
16
float max = std::
numeric_limits
<int>::max();
17
float min = std::
numeric_limits
<int>::min();
18
float infinity = std::
numeric_limits
<float>::infinity();
20
int int_max = std::
numeric_limits
<int>::max();
21
int int_min = std::
numeric_limits
<int>::min();
37
EXPECT_EQ(0, ToFlooredInt(std::
numeric_limits
<float>::quiet_NaN()));
39
float max = std::
numeric_limits
<int>::max();
40
float min = std::
numeric_limits
<int>::min();
41
float infinity = std::
numeric_limits
<float>::infinity()
[
all
...]
/external/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
max.pass.cpp
23
std::
numeric_limits
<int>::max());
25
std::
numeric_limits
<double>::max());
27
std::
numeric_limits
<Rep>::max());
30
std::
numeric_limits
<int>::max(), "");
32
std::
numeric_limits
<double>::max(), "");
34
std::
numeric_limits
<Rep>::max(), "");
min.pass.cpp
23
std::
numeric_limits
<int>::lowest());
25
std::
numeric_limits
<double>::lowest());
27
std::
numeric_limits
<Rep>::lowest());
30
std::
numeric_limits
<int>::lowest(), "");
32
std::
numeric_limits
<double>::lowest(), "");
34
std::
numeric_limits
<Rep>::lowest(), "");
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
max.pass.cpp
23
std::
numeric_limits
<int>::max());
25
std::
numeric_limits
<double>::max());
27
std::
numeric_limits
<Rep>::max());
30
std::
numeric_limits
<int>::max(), "");
32
std::
numeric_limits
<double>::max(), "");
34
std::
numeric_limits
<Rep>::max(), "");
min.pass.cpp
23
std::
numeric_limits
<int>::lowest());
25
std::
numeric_limits
<double>::lowest());
27
std::
numeric_limits
<Rep>::lowest());
30
std::
numeric_limits
<int>::lowest(), "");
32
std::
numeric_limits
<double>::lowest(), "");
34
std::
numeric_limits
<Rep>::lowest(), "");
Completed in 756 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>