aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/FloatingPointConverterTest.cpp
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2020-05-19 16:31:10 +0100
committerRob Hughes <robert.hughes@arm.com>2020-05-22 10:12:15 +0000
commit985ef1f2baf052a4d845b4fc7b6019ee7cd5e846 (patch)
treeeb72aee13fc1755c80d0f20ec78f3609c5adafc4 /src/armnn/test/FloatingPointConverterTest.cpp
parentb5ab1bc890c9b3012181cb1133fcf082be5f91e5 (diff)
downloadarmnn-985ef1f2baf052a4d845b4fc7b6019ee7cd5e846.tar.gz
Fix some build errors spotted on Windows:
* Use exact floating point constants for min/max values * Rename test case so it doesn't collide with a function name Change-Id: Icf03cfd8fedd505d02cd7f0a150502557939b903 Signed-off-by: Robert Hughes <robert.hughes@arm.com>
Diffstat (limited to 'src/armnn/test/FloatingPointConverterTest.cpp')
-rw-r--r--src/armnn/test/FloatingPointConverterTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/test/FloatingPointConverterTest.cpp b/src/armnn/test/FloatingPointConverterTest.cpp
index dabc1c16b3..d3474de831 100644
--- a/src/armnn/test/FloatingPointConverterTest.cpp
+++ b/src/armnn/test/FloatingPointConverterTest.cpp
@@ -69,8 +69,8 @@ BOOST_AUTO_TEST_CASE(TestConvertFloat32ToBFloat16)
-1.1800863E-38f,// 0x80808001 round up
4.843037E-35f, // 0x0680C000 round up
3.9999998f, // 0x407FFFFF round up
- 3.4028235E38f, // 0x7F7FFFFF max positive value
- -3.4028235E38f, // 0xFF7FFFFF max negative value
+ std::numeric_limits<float>::max(), // 0x7F7FFFFF max positive value
+ std::numeric_limits<float>::lowest(), // 0xFF7FFFFF max negative value
1.1754942E-38f, // 0x007FFFFF min positive value
-1.1754942E-38f // 0x807FFFFF min negative value
};