Skip to content

Commit fa23c53

Browse files
committed
Release 1.0.16
* Fixed improper AVX-512 detection which causes crash for several functions.
2 parents a6f91e4 + 97ca720 commit fa23c53

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* RECENT CHANGES
33
*******************************************************************************
44

5+
=== 1.0.16 ===
6+
* Fixed improper AVX-512 detection which causes crash for several functions.
7+
58
=== 1.0.15 ===
69
* Several functions optimized for AVX-512 support.
710
* Fixed several issues reported by PVS Studio static analyzer.

include/lsp-plug.in/dsp/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// Define version of headers
2626
#define LSP_DSP_LIB_MAJOR 1
2727
#define LSP_DSP_LIB_MINOR 0
28-
#define LSP_DSP_LIB_MICRO 15
28+
#define LSP_DSP_LIB_MICRO 16
2929

3030
#if defined(__WINDOWS__) || defined(__WIN32__) || defined(__WIN64__) || defined(_WIN64) || defined(_WIN32) || defined(__WINNT) || defined(__WINNT__)
3131
#define LSP_DSP_LIB_EXPORT_MODIFIER __declspec(dllexport)

project.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ ARTIFACT_ID = LSP_DSP_LIB
2323
ARTIFACT_NAME = lsp-dsp-lib
2424
ARTIFACT_DESC = DSP library for digital signal processing
2525
ARTIFACT_HEADERS = lsp-plug.in
26-
ARTIFACT_VERSION = 1.0.15
26+
ARTIFACT_VERSION = 1.0.16

src/main/x86/avx512.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,19 @@
5555

5656
#define CEXPORT2(cond, function, export) \
5757
{ \
58-
TEST_EXPORT(avx512::export); \
5958
if (cond) \
59+
{ \
60+
TEST_EXPORT(avx512::export); \
6061
dsp::function = avx512::export; \
62+
} \
6163
}
6264

6365
#define CEXPORT1(cond, export) CEXPORT2(cond, export, export)
6466

6567
void dsp_init(const cpu_features_t *f)
6668
{
67-
const bool vl = (f->features & (CPU_OPTION_AVX512F | CPU_OPTION_AVX512VL)) != (CPU_OPTION_AVX512F | CPU_OPTION_AVX512VL);
69+
const bool vl = (f->features & (CPU_OPTION_AVX512F | CPU_OPTION_AVX512VL)) ==
70+
(CPU_OPTION_AVX512F | CPU_OPTION_AVX512VL);
6871

6972
CEXPORT1(vl, copy);
7073
CEXPORT1(vl, move);

0 commit comments

Comments
 (0)