Skip to content

Commit

Permalink
Merge pull request #17 from Kagamiin/feature/flag-disable-inline-asm
Browse files Browse the repository at this point in the history
Adding flag to disable inline ASM
  • Loading branch information
Kagamiin authored Mar 14, 2024
2 parents 0311b0d + 285631c commit 9d80b5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ ESFM_process_feedback(esfm_chip *chip)
eg_output = slot->in.eg_output;

// ASM optimizaions!
#if defined(__GNUC__) && defined(__x86_64__)
#if defined(__GNUC__) && defined(__x86_64__) && !defined(_ESFMU_DISABLE_ASM_OPTIMIZATIONS)
asm (
"movzbq %[wave], %%r8 \n\t"
"shll $11, %%r8d \n\t"
Expand Down Expand Up @@ -1844,7 +1844,7 @@ ESFM_process_feedback(esfm_chip *chip)
[exprom] "m" (exprom)
: "cc", "ax", "bx", "cx", "dx", "r8", "r9", "r10", "r11"
);
#elif defined(__GNUC__) && defined(__i386__)
#elif defined(__GNUC__) && defined(__i386__) && !defined(_ESFMU_DISABLE_ASM_OPTIMIZATIONS)
asm (
"movzbl %b[wave], %%eax \n\t"
"shll $11, %%eax \n\t"
Expand Down Expand Up @@ -1910,7 +1910,7 @@ ESFM_process_feedback(esfm_chip *chip)
[i] "m" (iter_counter)
: "cc", "ax", "bx", "cx", "di"
);
#elif defined(__GNUC__) && defined(__arm__)
#elif defined(__GNUC__) && defined(__arm__) && !defined(_ESFMU_DISABLE_ASM_OPTIMIZATIONS)
asm (
"movs r3, #0 \n\t"
"movs %[out], #0 \n\t"
Expand Down

0 comments on commit 9d80b5a

Please sign in to comment.