Skip to content

Commit 29fbe77

Browse files
committed
Release 1.0.11
* Small math optimizations for dsp::smooth_cubic_linear and dsp::smooth_cubic_log functions. * Updated module versions in dependencies.
2 parents d3d7f16 + 6bbab20 commit 29fbe77

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

CHANGELOG

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

5+
=== 1.0.11 ===
6+
* Small math optimizations for dsp::smooth_cubic_linear and dsp::smooth_cubic_log
7+
functions.
8+
* Updated module versions in dependencies.
9+
510
=== 1.0.10 ===
611
* ARM NEON-optimized code compiles now only for at least ARMv6 architecture.
712
* Implemented linear ramping lramp_* functions optimized for

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 10
28+
#define LSP_DSP_LIB_MICRO 11
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)

include/private/dsp/arch/generic/graphics/interpolation.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,28 @@ namespace lsp
3232
{
3333
void smooth_cubic_linear(float *dst, float start, float stop, size_t count)
3434
{
35-
float dy = stop - start;
35+
float dy = 2.0f * (stop - start);
3636
float nx = 1.0f / (count + 1); // Normalizing x
3737

3838
for (size_t i=0; i<count; ++i)
3939
{
4040
float x = i * nx;
41-
*(dst++) = start + dy * x*x * (3.0f - 2.0f * x);
41+
*(dst++) = start + dy * x*x * (1.5f - x);
4242
}
4343
}
4444

4545
void smooth_cubic_log(float *dst, float start, float stop, size_t count)
4646
{
47-
float dy = logf(stop/start);
47+
float dy = 2.0f * logf(stop/start);
4848
float nx = 1.0f / (count + 1); // Normalizing x
4949

5050
for (size_t i=0; i<count; ++i)
5151
{
5252
float x = i * nx;
53-
*(dst++) = start * expf(dy * x*x * (3.0f - 2.0f * x));
53+
*(dst++) = start * expf(dy * x*x * (1.5f - x));
5454
}
5555
}
56-
}
57-
}
56+
} /* namespace generic */
57+
} /* namespace lsp */
5858

5959
#endif /* PRIVATE_DSP_ARCH_GENERIC_GRAPHICS_INTERPOLATION_H_ */

modules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#
2020

2121
# Variables that describe dependencies
22-
LSP_COMMON_LIB_VERSION := 1.0.26
22+
LSP_COMMON_LIB_VERSION := 1.0.27
2323
LSP_COMMON_LIB_NAME := lsp-common-lib
2424
LSP_COMMON_LIB_TYPE := src
2525
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git

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.10
26+
ARTIFACT_VERSION = 1.0.11

0 commit comments

Comments
 (0)