From 8dfddcd7dba3752ab44fd9f30cc1533561aabe75 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 20 Sep 2016 22:21:32 +0200 Subject: api/tracker: merge from unstable - fix gimbal lock - use right Tait-Bryan conversion to/from matrix, not generic inapplicable euler conversion - adjust for timer inaccuracy, therefore running at constant Hz that's actually the specified Hz --- opentrack-compat/nan.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 opentrack-compat/nan.hpp (limited to 'opentrack-compat/nan.hpp') diff --git a/opentrack-compat/nan.hpp b/opentrack-compat/nan.hpp new file mode 100644 index 00000000..9926da13 --- /dev/null +++ b/opentrack-compat/nan.hpp @@ -0,0 +1,11 @@ +#pragma once + +#include "export.hpp" + +#if defined(__GNUC__) +extern "C" OPENTRACK_COMPAT_EXPORT bool __attribute__ ((noinline)) nanp(double value); +#elif defined(_WIN32) +extern "C" OPENTRACK_COMPAT_EXPORT __declspec(noinline) bool nanp(double value); +#else +extern "C" OPENTRACK_COMPAT_EXPORT bool nanp(double value); +#endif -- cgit v1.2.3