diff options
Diffstat (limited to 'include/internal/utilities.h')
-rw-r--r-- | include/internal/utilities.h | 4 |
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 |