Skip to content

Commit

Permalink
Bugfixes for AVX-512
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Dec 10, 2024
1 parent 59132a1 commit 7dd57a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/private/dsp/arch/x86/avx512/search/minmax.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ namespace lsp
#define SMINMAX_CORE(OP) \
__ASM_EMIT("vxorps %%zmm0, %%zmm0, %%zmm0") /* zmm0 = 0 */ \
__ASM_EMIT("test %[count], %[count]") \
__ASM_EMIT("jz 12f") \
__ASM_EMIT("jz 10f") \
__ASM_EMIT("vbroadcastss 0x00(%[src]), %%zmm0") /* zmm0 = result */ \
__ASM_EMIT("vmovaps %[CC], %%zmm7") /* zmm7 = mask */ \
__ASM_EMIT("vandps %%zmm7, %%zmm0, %%zmm1") /* zmm1 = abs(result) */ \
Expand Down Expand Up @@ -587,7 +587,7 @@ namespace lsp
__ASM_EMIT("dec %[count]") \
__ASM_EMIT("jge 9b") \
/* end */ \
__ASM_EMIT("12:")
__ASM_EMIT("10:")

float sign_min(const float *src, size_t count)
{
Expand Down

0 comments on commit 7dd57a1

Please sign in to comment.