mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Provide a definition for numeric_limits static data members
This commit is contained in:
@@ -157,6 +157,12 @@ void test_numtraits()
|
||||
VERIFY( (std::numeric_limits<half>::denorm_min)() > half(0.f) );
|
||||
VERIFY( (std::numeric_limits<half>::min)()/half(2) > half(0.f) );
|
||||
VERIFY_IS_EQUAL( (std::numeric_limits<half>::denorm_min)()/half(2), half(0.f) );
|
||||
|
||||
// Test to see that we are able to link against the symbols for digits and
|
||||
// digits10.
|
||||
volatile const int& digits10 = std::numeric_limits<half>::digits10;
|
||||
volatile const int& digits = std::numeric_limits<half>::digits;
|
||||
VERIFY( (digits10) != (digits) );
|
||||
}
|
||||
|
||||
void test_arithmetic()
|
||||
|
||||
Reference in New Issue
Block a user