summaryrefslogtreecommitdiffhomepage
path: root/src/object.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-17 00:49:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-17 00:49:10 +0200
commita27ac8b71720d5e6340f5182d13d5eea528f8423 (patch)
treeb9ff8066a94fae6b4dbd5f0786efc60b6a14c28f /src/object.cpp
parent3e819f9bde8e156a2a7a17312a6f4a941021a19e (diff)
a
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 952f5765..001b9dc6 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -33,9 +33,6 @@ constexpr inline Pair<int, int8_t> normalize_coord(const int8_t cur, const int n
bool b = x >= half_tile | x < -half_tile;
int tmask = -(volatile int)b;
int8_t xmask = -(volatile int8_t)b;
-#if defined __GNUG__
- asm volatile ("" : "+r"(tmask), "+r"(xmask));
-#endif
t += s & tmask;
x = (int8_t)((tile_size - a)*-s) & xmask | (int8_t)(x & ~xmask);
return { t, (int8_t)x };