Skip to content

Commit

Permalink
add inline to ease cuda porting
Browse files Browse the repository at this point in the history
  • Loading branch information
VinInn committed Jan 23, 2018
1 parent 4172388 commit fe4efdc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/vdtcore_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit fe4efdc

Please sign in to comment.