| 1 |
Description: fix build on x32 https://wiki.debian.org/X32Port |
| 2 |
Author: Sébastien Noel <[email protected]> |
| 3 |
Forwarded: TODO |
| 4 |
Last-Update: 2026-05-13 |
| 5 |
|
| 6 |
--- a/include/dr_libs/dr_flac.h |
| 7 |
+++ b/include/dr_libs/dr_flac.h |
| 8 |
@@ -2716,17 +2716,9 @@ static DRFLAC_INLINE drflac_uint32 drfla |
| 9 |
#if defined(__GNUC__) || defined(__clang__) |
| 10 |
#if defined(DRFLAC_X64) |
| 11 |
{ |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+ drflac_cache_t r; |
| 21 |
__asm__ __volatile__ ( |
| 22 |
|
| 23 |
|
| 24 |
+ "lzcnt{ %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc" |
| 25 |
); |
| 26 |
|
| 27 |
return (drflac_uint32)r; |
| 28 |
@@ -2735,8 +2727,7 @@ static DRFLAC_INLINE drflac_uint32 drfla |
| 29 |
{ |
| 30 |
drflac_uint32 r; |
| 31 |
__asm__ __volatile__ ( |
| 32 |
|
| 33 |
|
| 34 |
+ "lzcnt{l %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc" |
| 35 |
); |
| 36 |
|
| 37 |
return r; |