Skip to content

Commit

Permalink
Fixed error in AVX and AVX-512 implementation of lr_to_ms functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Mar 24, 2024
1 parent c01f193 commit f78cd27
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

=== 1.0.22 ===
* Implemented functions for computing correlation between two signals.
* Fixed error in AVX and AVX-512 implementation of lr_to_ms functions.
* Updated build scripts.

=== 1.0.21 ===
Expand Down
8 changes: 4 additions & 4 deletions include/private/dsp/arch/x86/avx/msmatrix.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2020 Vladimir Sadovnikov <sadko4u@gmail.com>
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2024 Vladimir Sadovnikov <sadko4u@gmail.com>
*
* This file is part of lsp-dsp-lib
* Created on: 31 мар. 2020 г.
Expand Down Expand Up @@ -91,8 +91,8 @@ namespace lsp
__ASM_EMIT("vmovups %%xmm0, 0x00(%[mid], %[off])")
__ASM_EMIT("vmovups %%xmm2, 0x00(%[side], %[off])")
__ASM_EMIT("add $0x10, %[off]")
__ASM_EMIT32("subl $8, %[count]")
__ASM_EMIT64("sub $8, %[count]")
__ASM_EMIT32("subl $4, %[count]")
__ASM_EMIT64("sub $4, %[count]")
__ASM_EMIT("6:")
// 1x blocks
__ASM_EMIT32("addl $3, %[count]")
Expand Down
8 changes: 4 additions & 4 deletions include/private/dsp/arch/x86/avx512/msmatrix.h
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 <sadko4u@gmail.com>
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2024 Vladimir Sadovnikov <sadko4u@gmail.com>
*
* This file is part of lsp-dsp-lib
* Created on: 9 сент. 2023 г.
Expand Down Expand Up @@ -107,8 +107,8 @@ namespace lsp
__ASM_EMIT("vmovups %%xmm0, 0x00(%[mid], %[off])")
__ASM_EMIT("vmovups %%xmm2, 0x00(%[side], %[off])")
__ASM_EMIT("add $0x10, %[off]")
__ASM_EMIT32("subl $8, %[count]")
__ASM_EMIT64("sub $8, %[count]")
__ASM_EMIT32("subl $4, %[count]")
__ASM_EMIT64("sub $4, %[count]")
__ASM_EMIT("8:")
// 1x blocks
__ASM_EMIT32("addl $3, %[count]")
Expand Down

0 comments on commit f78cd27

Please sign in to comment.