summaryrefslogtreecommitdiff
path: root/include/internal/utilities.h
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-06-17 14:30:37 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-06-17 14:30:37 +0200
commitf9947b4d7ffedcf98cdb128de835422f647e7f15 (patch)
treec42d427a23de5d14b3407943d529d18cd9e516f0 /include/internal/utilities.h
parent536b7fe4bce4b183cb060a1b9045752ae39d842f (diff)
Removed the precision argument from the routines in favor of a single templated function
Diffstat (limited to 'include/internal/utilities.h')
-rw-r--r--include/internal/utilities.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/internal/utilities.h b/include/internal/utilities.h
index 26145528..7092bcdd 100644
--- a/include/internal/utilities.h
+++ b/include/internal/utilities.h
@@ -240,6 +240,10 @@ bool IsMultiple(const size_t a, const size_t b);
// Convert the precision enum into bytes, e.g. a double takes up 8 bytes
size_t GetBytes(const Precision precision);
+// Convert the template argument into a precision value
+template <typename T>
+Precision PrecisionValue();
+
// =================================================================================================
// Returns false is this precision is not supported by the device