Skip to content

Commit

Permalink
Yet more AVX-512 fixes for msmatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Mar 26, 2024
1 parent f78cd27 commit 99ad5fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/private/dsp/arch/x86/avx512/msmatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ namespace lsp
ARCH_X86_ASM(
__ASM_EMIT("xor %[off], %[off]")
// 64x blocks
__ASM_EMIT32("subl $32, %[count]")
__ASM_EMIT64("sub $32, %[count]")
__ASM_EMIT32("subl $64, %[count]")
__ASM_EMIT64("sub $64, %[count]")
__ASM_EMIT("jb 2f")
__ASM_EMIT("1:")
__ASM_EMIT("vmovups 0x00(%[mid], %[off]), %%zmm0") // zmm0 = m
Expand Down
6 changes: 3 additions & 3 deletions src/test/utest/msmatrix/conv2.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2023 Vladimir Sadovnikov <[email protected]>
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2024 Vladimir Sadovnikov <[email protected]>
*
* This file is part of lsp-dsp-lib
* Created on: 31 мар. 2020 г.
Expand Down Expand Up @@ -85,7 +85,7 @@ UTEST_BEGIN("dsp.msmatrix", conv2)
return;

UTEST_FOREACH(count, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
32, 64, 65, 100, 999, 0xfff)
32, 33, 34, 35, 36, 37, 38, 39, 40, 63, 64, 65, 100, 999, 0xfff)
{
for (size_t mask=0; mask <= 0x0f; ++mask)
{
Expand Down
6 changes: 3 additions & 3 deletions src/test/utest/msmatrix/conv2x1.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2023 Vladimir Sadovnikov <[email protected]>
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2024 Vladimir Sadovnikov <[email protected]>
*
* This file is part of lsp-dsp-lib
* Created on: 31 мар. 2020 г.
Expand Down Expand Up @@ -97,7 +97,7 @@ UTEST_BEGIN("dsp.msmatrix", conv2x1)
return;

UTEST_FOREACH(count, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
32, 64, 65, 100, 999, 0xfff)
32, 33, 34, 35, 36, 37, 38, 39, 40, 63, 64, 65, 100, 999, 0xfff)
{
for (size_t mask=0; mask <= 0x07; ++mask)
{
Expand Down

0 comments on commit 99ad5fb

Please sign in to comment.