summaryrefslogtreecommitdiffhomepage
path: root/proto-ft
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-22 13:21:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:01:53 +0200
commit519b4a3ae10c96951db917f2439982c7d2391874 (patch)
treeec55d8a12fa740803e6da2074eec04f465e98ede /proto-ft
parent0f182b791622ad4491c8aabf8edce21a63839bdc (diff)
compat/macros: rename portability macros
use `cc_xx' rather than awkward synonyms.
Diffstat (limited to 'proto-ft')
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp6
1 files changed, 3 insertions, 3 deletions
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<typename t>
-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);
}