From 5b478a8ee730d941ad055f4607c7214c8627ee01 Mon Sep 17 00:00:00 2001 From: x Date: Wed, 16 Oct 2019 19:47:30 +0200 Subject: [PATCH] TurboPFor: Config/Platform --- conf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf.h b/conf.h index a9674fc..854a192 100644 --- a/conf.h +++ b/conf.h @@ -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__)