From 519b4a3ae10c96951db917f2439982c7d2391874 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Jun 2018 13:21:52 +0200 Subject: compat/macros: rename portability macros use `cc_xx' rather than awkward synonyms. --- proto-ft/ftnoir_protocol_ft.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proto-ft') diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 57787093..389e12b2 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -25,7 +25,7 @@ static_assert(sizeof(LONG) == 4u, ""); static constexpr inline float d2r = float(M_PI/180); -never_inline void store(float volatile& place, const float value) +cc_noinline void store(float volatile& place, const float value) { union { @@ -42,13 +42,13 @@ never_inline void store(float volatile& place, const float value) } template -force_inline void store(t volatile& place, t value) +cc_forceinline void store(t volatile& place, t value) { static_assert(sizeof(t) == 4u, ""); (void)InterlockedExchange((LONG volatile*) &place, value); } -force_inline std::int32_t load(std::int32_t volatile& place) +cc_forceinline std::int32_t load(std::int32_t volatile& place) { return InterlockedCompareExchange((volatile LONG*) &place, 0, 0); } -- cgit v1.2.3