TurboPFor: Config/Platform

This commit is contained in:
x
2019-10-16 19:47:30 +02:00
parent 4182a97682
commit 5b478a8ee7

2
conf.h
View File

@ -162,7 +162,9 @@ static inline double round(double num) { return (num > 0.0) ? floor(num + 0.5) :
#define ctof64(_cp_) (*(double *)(_cp_))
#elif defined(__ARM_FEATURE_UNALIGNED)
struct _PACKED longu { uint64_t l; };
struct _PACKED doubleu { double d; };
#define ctou64(_cp_) ((struct longu *)(_cp_))->l
#define ctof64(_cp_) ((struct doubleu *)(_cp_))->d
#endif
#elif defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7S__)