summaryrefslogtreecommitdiffstats
path: root/floatprops.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-06-05 14:04:12 +0000
committerErik Schnetter <schnetter@gmail.com>2013-06-05 14:04:12 +0000
commit075a6577bc62862e932b52a2781f8b220237cdea (patch)
tree0b68fa86144eb2e4144e0c3ad6dcda594fed0374 /floatprops.h
parente6fd0261b4c1b55d2a9b80497cb46e0d0b7ddd52 (diff)
downloadvecmathlib-075a6577bc62862e932b52a2781f8b220237cdea.zip
vecmathlib-075a6577bc62862e932b52a2781f8b220237cdea.tar.gz
Continue implementing QPX support
Diffstat (limited to 'floatprops.h')
-rw-r--r--floatprops.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/floatprops.h b/floatprops.h
index 5d4dd24..a832f6c 100644
--- a/floatprops.h
+++ b/floatprops.h
@@ -6,12 +6,14 @@
#include "floattypes.h"
#include <cmath>
-#include <cstdint>
+//#include <cstdint>
#include <cstring>
#include <iostream>
#include <limits>
#include <sstream>
+#include <stdint.h>
+
namespace vecmathlib {
@@ -36,8 +38,8 @@ namespace vecmathlib {
template<>
struct floatprops<fp8> {
typedef fp8 real_t;
- typedef int8_t int_t;
- typedef uint8_t uint_t;
+ typedef std::int8_t int_t;
+ typedef std::uint8_t uint_t;
static char const* name() { return "fp8"; }
@@ -96,8 +98,8 @@ namespace vecmathlib {
template<>
struct floatprops<fp16> {
typedef fp16 real_t;
- typedef int16_t int_t;
- typedef uint16_t uint_t;
+ typedef std::int16_t int_t;
+ typedef std::uint16_t uint_t;
static char const* name() { return "fp16"; }
@@ -156,8 +158,8 @@ namespace vecmathlib {
template<>
struct floatprops<float>: std::numeric_limits<float> {
typedef float real_t;
- typedef int32_t int_t;
- typedef uint32_t uint_t;
+ typedef std::int32_t int_t;
+ typedef std::uint32_t uint_t;
static char const* name() { return "float"; }
@@ -211,8 +213,8 @@ namespace vecmathlib {
template<>
struct floatprops<double>: std::numeric_limits<double> {
typedef double real_t;
- typedef int64_t int_t;
- typedef uint64_t uint_t;
+ typedef std::int64_t int_t;
+ typedef std::uint64_t uint_t;
static char const* name() { return "double"; }
OpenPOWER on IntegriCloud