diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-09-02 15:23:56 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-09-02 15:23:56 -0400 |
commit | cddd65bfcb491b446744e5ab8fe7e999528e7316 (patch) | |
tree | 169870ff1fdaf5f66f429d3b2213b32ad764cd3e /floatprops.h | |
parent | 9cfbe4801862dd1ae78745dae1e10fca9c6e1b28 (diff) | |
download | vecmathlib-cddd65bfcb491b446744e5ab8fe7e999528e7316.zip vecmathlib-cddd65bfcb491b446744e5ab8fe7e999528e7316.tar.gz |
Provide clean set of libm elemental functions in namespace vml_std
Different C++ standard versions and different compilers provide different sets of elemental functions in std. Thus, we create a clean set in a new namespace vml_std.
Diffstat (limited to 'floatprops.h')
-rw-r--r-- | floatprops.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/floatprops.h b/floatprops.h index e81d8d0..99fefbd 100644 --- a/floatprops.h +++ b/floatprops.h @@ -36,8 +36,8 @@ namespace vecmathlib { template<> struct floatprops<fp8> { typedef fp8 real_t; - typedef std::int8_t int_t; - typedef std::uint8_t uint_t; + typedef vml_std::int8_t int_t; + typedef vml_std::uint8_t uint_t; static char const* name() { return "fp8"; } @@ -102,8 +102,8 @@ namespace vecmathlib { template<> struct floatprops<fp16> { typedef fp16 real_t; - typedef std::int16_t int_t; - typedef std::uint16_t uint_t; + typedef vml_std::int16_t int_t; + typedef vml_std::uint16_t uint_t; static char const* name() { return "fp16"; } @@ -168,8 +168,8 @@ namespace vecmathlib { template<> struct floatprops<float>: std::numeric_limits<float> { typedef float real_t; - typedef std::int32_t int_t; - typedef std::uint32_t uint_t; + typedef vml_std::int32_t int_t; + typedef vml_std::uint32_t uint_t; static char const* name() { return "float"; } @@ -229,8 +229,8 @@ namespace vecmathlib { template<> struct floatprops<double>: std::numeric_limits<double> { typedef double real_t; - typedef std::int64_t int_t; - typedef std::uint64_t uint_t; + typedef vml_std::int64_t int_t; + typedef vml_std::uint64_t uint_t; static char const* name() { return "double"; } |