teptris 0.3.29.0-arm-linux → 0.3.31.0-arm-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a81ea2fd9983141c59746a1f6b6a62d72e9c7957c4025d274a118f56ab8ad42f
4
- data.tar.gz: 04d4b929bd809816a78705c5288572701a906c49aeef51c090c0dbd763541a20
3
+ metadata.gz: b25050394dbb413576a60b7bfbff3861971ec847860a16942c99f8f9258a4892
4
+ data.tar.gz: 88cf345154cbb0ba0d2b4db5d16ca9f804ce707289853e11135ab56ab7e14571
5
5
  SHA512:
6
- metadata.gz: 8e4cafd95d327aef4153c3f6ad67e6847ada13fa6177de1323bc05e2bc1ba1a2ff04e18bde6a92ae3ad39e6e74d5ccd2d02507c68e230063ee85547ea34b385a
7
- data.tar.gz: dcbc492bab5ad90e0a9174b145bd246762c9617643209005838b97ca894c3bfd4e8138dbe04a27b26b48c5319d2770d14097bd3509cf9b8a55c3cc0ab9639c52
6
+ metadata.gz: a7bf0a2f3e215d2ded1d5e134420abdb7046525d9c5afc3111fff6fa728ed815301ae48b190598419bd398ba50bc75c6b00c3b78431ea97f43e6870599438b16
7
+ data.tar.gz: cafe236fa88221ffe4662cdd0eafbc7896013dcb257560b1c42a2ce0a6843030d4e4ed7895cb61ede5c933b333d2665c623a6add1e79d12031e1064c75aaafcd
@@ -1,4 +1,4 @@
1
- # libteptris 0.3.29 — vendored source
1
+ # libteptris 0.3.31 — vendored source
2
2
 
3
3
  This directory carries the COMPLETE C source of the engine this
4
4
  gem's extension was built from (the packaging doctrine: compiled
@@ -4,6 +4,6 @@
4
4
  #define TEPTRIS_VERSION_MAJOR 0
5
5
  #define TEPTRIS_VERSION_MINOR 3
6
6
  #define TEPTRIS_VERSION_PATCH 29
7
- #define TEPTRIS_VERSION_STRING "0.3.29"
7
+ #define TEPTRIS_VERSION_STRING "0.3.31"
8
8
 
9
9
  #endif /* TEPTRIS_VERSION_H */
@@ -44,10 +44,24 @@
44
44
  #if defined(_MSC_VER)
45
45
  #include <intrin.h>
46
46
 
47
+ #if defined(_WIN64)
47
48
  static inline uint32_t floor_log2(const uint64_t value) {
48
49
  long index;
49
50
  return _BitScanReverse64(&index, value) ? index : 64;
50
51
  }
52
+ #else
53
+ /* x86 MSVC has no 64-bit bit-scan intrinsic - split the halves */
54
+ static inline uint32_t floor_log2(const uint64_t value) {
55
+ long index;
56
+ if (value == 0) return 64;
57
+ if (value >> 32) {
58
+ _BitScanReverse(&index, (unsigned long)(value >> 32));
59
+ return (uint32_t)index + 32;
60
+ }
61
+ _BitScanReverse(&index, (unsigned long)(value & 0xFFFFFFFFu));
62
+ return (uint32_t)index;
63
+ }
64
+ #endif
51
65
 
52
66
  #else
53
67