summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2014-06-07 16:01:16 -0400
committerErik Schnetter <schnetter@gmail.com>2014-06-07 16:01:16 -0400
commit6421332c045c18ee2821071b8365c60eeee45a54 (patch)
tree961aa7c4b1789d3f8251a07250acc225860d8275
parentd37659034cef50ad7995185482696f90e959bd35 (diff)
downloadvecmathlib-6421332c045c18ee2821071b8365c60eeee45a54.zip
vecmathlib-6421332c045c18ee2821071b8365c60eeee45a54.tar.gz
Correct return types of some floating point properties
-rw-r--r--floatprops.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/floatprops.h b/floatprops.h
index 5304ad7..3a99a95 100644
--- a/floatprops.h
+++ b/floatprops.h
@@ -40,10 +40,10 @@ namespace vecmathlib {
static char const* name() { return "fp8"; }
// Definitions that might come from numeric_limits<> instead:
- static int min() { __builtin_unreachable(); }
- static int max() { __builtin_unreachable(); }
+ static real_t min() { __builtin_unreachable(); }
+ static real_t max() { __builtin_unreachable(); }
static int const digits = 4;
- static int epsilon() { __builtin_unreachable(); }
+ static real_t epsilon() { __builtin_unreachable(); }
static int const min_exponent = -6;
static int const max_exponent = 7;
@@ -106,10 +106,10 @@ namespace vecmathlib {
static char const* name() { return "fp16"; }
// Definitions that might come from numeric_limits<> instead:
- static int min() { __builtin_unreachable(); }
- static int max() { __builtin_unreachable(); }
+ static real_t min() { __builtin_unreachable(); }
+ static real_t max() { __builtin_unreachable(); }
static int const digits = 11;
- static int epsilon() { __builtin_unreachable(); }
+ static real_t epsilon() { __builtin_unreachable(); }
static int const min_exponent = -14;
static int const max_exponent = 15;
OpenPOWER on IntegriCloud