]> git.pld-linux.org Git - packages/SDL2_sound.git/blame - SDL_sound-use-builtin-clz.patch
- added use-builtin-clz patch (rely on gcc to choose proper instruction for target...
[packages/SDL2_sound.git] / SDL_sound-use-builtin-clz.patch
CommitLineData
387801cc
JB
1--- SDL_sound-2.0.1/src/dr_flac.h.orig 2022-03-25 21:17:50.000000000 +0100
2+++ SDL_sound-2.0.1/src/dr_flac.h 2022-09-24 20:46:30.681153334 +0200
3@@ -2768,25 +2768,7 @@ static DRFLAC_INLINE drflac_uint32 drfla
4 #endif
5 #else
6 #if defined(__GNUC__) || defined(__clang__)
7- #if defined(DRFLAC_X64)
8- {
9- drflac_uint64 r;
10- __asm__ __volatile__ (
11- "lzcnt{ %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"
12- );
13-
14- return (drflac_uint32)r;
15- }
16- #elif defined(DRFLAC_X86)
17- {
18- drflac_uint32 r;
19- __asm__ __volatile__ (
20- "lzcnt{l %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"
21- );
22-
23- return r;
24- }
25- #elif defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5) && !defined(DRFLAC_64BIT) /* <-- I haven't tested 64-bit inline assembly, so only enabling this for the 32-bit build for now. */
26+ #if defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5) && !defined(DRFLAC_64BIT) /* <-- I haven't tested 64-bit inline assembly, so only enabling this for the 32-bit build for now. */
27 {
28 unsigned int r;
29 __asm__ __volatile__ (
This page took 0.604555 seconds and 4 git commands to generate.