Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-20 11:06:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-20 11:08:59 +0300
commite17e119a312528897d2b1f0ee73a9a8a6ecf6150 (patch)
treea61cdcc1d5682f5bd462d542efc09e7ef21311ca /tests/gtests/blenlib/BLI_math_base_test.cc
parente63eb6ed2696c5d52b35972ab7a1bbda7b5bdc90 (diff)
Cleanup: comment line length (tests)
Diffstat (limited to 'tests/gtests/blenlib/BLI_math_base_test.cc')
-rw-r--r--tests/gtests/blenlib/BLI_math_base_test.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/gtests/blenlib/BLI_math_base_test.cc b/tests/gtests/blenlib/BLI_math_base_test.cc
index 89903e1759c..d62d0ba274d 100644
--- a/tests/gtests/blenlib/BLI_math_base_test.cc
+++ b/tests/gtests/blenlib/BLI_math_base_test.cc
@@ -4,7 +4,8 @@
#include "BLI_math.h"
-/* In tests below, when we are using -1.0f as max_diff value, we actually turn the function into a pure-ULP one. */
+/* In tests below, when we are using -1.0f as max_diff value, we actually turn the function into a
+ * pure-ULP one. */
/* Put this here, since we cannot use BLI_assert() in inline math files it seems... */
TEST(math_base, CompareFFRelativeValid)
@@ -73,8 +74,9 @@ TEST(math_base, CompareFFRelativeZero)
/* Note: in theory, this should return false, since 0.0f and -0.0f have 0x80000000 diff,
* but overflow in subtraction seems to break something here
- * (abs(*(int *)&fn0 - *(int *)&f0) == 0x80000000 == fn0), probably because int32 cannot hold this abs value.
- * this is yet another illustration of why one shall never use (near-)zero floats in pure-ULP comparison. */
+ * (abs(*(int *)&fn0 - *(int *)&f0) == 0x80000000 == fn0), probably because int32 cannot
+ * hold this abs value. this is yet another illustration of why one shall never use (near-)zero
+ * floats in pure-ULP comparison. */
// EXPECT_FALSE(compare_ff_relative(fn0, f0, -1.0f, 1024));
// EXPECT_FALSE(compare_ff_relative(f0, fn0, -1.0f, 1024));