Skip to content

Commit

Permalink
Release 1.0.24
Browse files Browse the repository at this point in the history
* Fixed build for x86 Clang.
  • Loading branch information
sadko4u committed May 22, 2024
2 parents 7826371 + 7d56512 commit a60a256
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* RECENT CHANGES
*******************************************************************************

=== 1.0.24 ===
* Fixed build for x86 Clang.

=== 1.0.23 ===
* Updated module versions in dependencies.

Expand Down
2 changes: 1 addition & 1 deletion include/lsp-plug.in/dsp/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// Define version of headers
#define LSP_DSP_LIB_MAJOR 1
#define LSP_DSP_LIB_MINOR 0
#define LSP_DSP_LIB_MICRO 23
#define LSP_DSP_LIB_MICRO 24

#if defined(__WINDOWS__) || defined(__WIN32__) || defined(__WIN64__) || defined(_WIN64) || defined(_WIN32) || defined(__WINNT) || defined(__WINNT__)
#define LSP_DSP_LIB_EXPORT_MODIFIER __declspec(dllexport)
Expand Down
16 changes: 10 additions & 6 deletions include/private/dsp/arch/x86/avx/correlation.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ namespace lsp
__ASM_EMIT("jae 1b")
__ASM_EMIT("2:")
/* 4x block */
__ASM_EMIT("add $4, %[count]")
__ASM_EMIT32("addl $4, %[count]")
__ASM_EMIT64("add $4, %[count]")
__ASM_EMIT("jl 4f")
__ASM_EMIT("vmovups 0x00(%[a_head]), %%xmm0") /* xmm0 = ah */
__ASM_EMIT("vmovups 0x00(%[b_head]), %%xmm1") /* xmm1 = bh */
Expand Down Expand Up @@ -425,7 +426,8 @@ namespace lsp
__ASM_EMIT("4:")

/* 1x blocks */
__ASM_EMIT("add $3, %[count]")
__ASM_EMIT32("addl $3, %[count]")
__ASM_EMIT64("add $3, %[count]")
__ASM_EMIT("jl 6f")
__ASM_EMIT("5:")
__ASM_EMIT("vmovss 0x00(%[a_head]), %%xmm0") /* xmm0 = ah */
Expand Down Expand Up @@ -486,7 +488,7 @@ namespace lsp
[corr] "+m" (corr), [dst] "+m" (dst),
[a_head] "+r" (a_head), [b_head] "+r" (b_head),
[a_tail] "+r" (a_tail), [b_tail] "+r" (b_tail),
[count] "+g" (count)
[count] "+m" (count)
)
__IF_64(
[dst] "+r" (dst),
Expand Down Expand Up @@ -600,7 +602,8 @@ namespace lsp
__ASM_EMIT("jae 1b")
__ASM_EMIT("2:")
/* 4x block */
__ASM_EMIT("add $4, %[count]")
__ASM_EMIT32("addl $4, %[count]")
__ASM_EMIT64("add $4, %[count]")
__ASM_EMIT("jl 4f")
__ASM_EMIT("vmovups 0x00(%[a_head]), %%xmm0") /* xmm0 = ah */
__ASM_EMIT("vmovups 0x00(%[b_head]), %%xmm1") /* xmm1 = bh */
Expand Down Expand Up @@ -669,7 +672,8 @@ namespace lsp
__ASM_EMIT("4:")

/* 1x blocks */
__ASM_EMIT("add $3, %[count]")
__ASM_EMIT32("addl $3, %[count]")
__ASM_EMIT64("add $3, %[count]")
__ASM_EMIT("jl 6f")
__ASM_EMIT("5:")
__ASM_EMIT("vmovss 0x00(%[a_head]), %%xmm0") /* xmm0 = ah */
Expand Down Expand Up @@ -727,7 +731,7 @@ namespace lsp
[corr] "+m" (corr), [dst] "+m" (dst),
[a_head] "+r" (a_head), [b_head] "+r" (b_head),
[a_tail] "+r" (a_tail), [b_tail] "+r" (b_tail),
[count] "+g" (count)
[count] "+m" (count)
)
__IF_64(
[dst] "+r" (dst),
Expand Down
8 changes: 5 additions & 3 deletions include/private/dsp/arch/x86/avx512/correlation.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ namespace lsp
__ASM_EMIT64("sub $8, %[count]")
__ASM_EMIT("4:")
/* 4x block */
__ASM_EMIT("add $4, %[count]")
__ASM_EMIT32("addl $4, %[count]")
__ASM_EMIT64("add $4, %[count]")
__ASM_EMIT("jl 6f")
__ASM_EMIT("vmovups 0x00(%[a_head]), %%xmm0") /* xmm0 = ah */
__ASM_EMIT("vmovups 0x00(%[b_head]), %%xmm1") /* xmm1 = bh */
Expand Down Expand Up @@ -422,7 +423,8 @@ namespace lsp
__ASM_EMIT("6:")

/* 1x blocks */
__ASM_EMIT("add $3, %[count]")
__ASM_EMIT32("addl $3, %[count]")
__ASM_EMIT64("add $3, %[count]")
__ASM_EMIT("jl 8f")
__ASM_EMIT("7:")
__ASM_EMIT("vmovss 0x00(%[a_head]), %%xmm0") /* xmm0 = ah */
Expand Down Expand Up @@ -480,7 +482,7 @@ namespace lsp
[corr] "+m" (corr), [dst] "+m" (dst),
[a_head] "+r" (a_head), [b_head] "+r" (b_head),
[a_tail] "+r" (a_tail), [b_tail] "+r" (b_tail),
[count] "+g" (count)
[count] "+m" (count)
)
__IF_64(
[dst] "+r" (dst),
Expand Down
5 changes: 3 additions & 2 deletions include/private/dsp/arch/x86/sse/correlation.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ namespace lsp
__ASM_EMIT("jae 1b")
__ASM_EMIT("2:")
/* 1x blocks */
__ASM_EMIT("add $3, %[count]")
__ASM_EMIT32("addl $3, %[count]")
__ASM_EMIT64("add $3, %[count]")
__ASM_EMIT("jl 4f")
__ASM_EMIT("3:")
__ASM_EMIT("movss 0x00(%[a_head]), %%xmm0") /* xmm0 = ah */
Expand Down Expand Up @@ -300,7 +301,7 @@ namespace lsp
[corr] "+m" (corr), [dst] "+m" (dst),
[a_head] "+r" (a_head), [b_head] "+r" (b_head),
[a_tail] "+r" (a_tail), [b_tail] "+r" (b_tail),
[count] "+g" (count)
[count] "+m" (count)
)
__IF_64(
[dst] "+r" (dst),
Expand Down
2 changes: 1 addition & 1 deletion project.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ ARTIFACT_ID = LSP_DSP_LIB
ARTIFACT_NAME = lsp-dsp-lib
ARTIFACT_DESC = DSP library for digital signal processing
ARTIFACT_HEADERS = lsp-plug.in
ARTIFACT_VERSION = 1.0.23
ARTIFACT_VERSION = 1.0.24

0 comments on commit a60a256

Please sign in to comment.