From fe4efdcdaa8663193132cca1120ec55b12e4702e Mon Sep 17 00:00:00 2001 From: Vincenzo Innocente Date: Tue, 23 Jan 2018 15:25:38 +0100 Subject: [PATCH] add inline to ease cuda porting --- include/vdtcore_common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/vdtcore_common.h b/include/vdtcore_common.h index e15b9c0..c9af5b5 100644 --- a/include/vdtcore_common.h +++ b/include/vdtcore_common.h @@ -58,11 +58,11 @@ const float MAXNUMF = 3.4028234663852885981170418348451692544e38f; /// Used to switch between different type of interpretations of the data (64 bits) union ieee754{ - ieee754 () {}; - ieee754 (double thed) {d=thed;}; - ieee754 (uint64_t thell) {ll=thell;}; - ieee754 (float thef) {f[0]=thef;}; - ieee754 (uint32_t thei) {i[0]=thei;}; + inline ieee754 () {}; + inline ieee754 (double thed) {d=thed;}; + inline ieee754 (uint64_t thell) {ll=thell;}; + inline ieee754 (float thef) {f[0]=thef;}; + inline ieee754 (uint32_t thei) {i[0]=thei;}; double d; float f[2]; uint32_t i[2];