Repository navigation
Performance improvements and CMSIS-DSP upgrade to v1.18.0 - #133
Closed
pingdynasty wants to merge 2 commits into
Closed
pingdynasty wants to merge 2 commits into
pingdynasty wants to merge 2 commits into
Conversation
pingdynasty
commented
Nov 27, 2026
Collaborator
- CMSIS-DSP built with ARM_MATH_LOOPUNROLL: biquad and vector functions up to 30% faster
- Updated CMSIS-DSP to v1.18.0
- Patches built without -fno-builtin and -mtune=cortex-m4: fminf, fmaxf, fabsf, sqrtf and friends compile to FPU instructions
- Added AdsrEnvelope block generate() and process(), up to 33% faster than per-sample
- Faster block processing (state kept in registers) in StateVariableFilter, SmoothingFilter, DcBlockingFilter, EnvelopeFollower, InterpolatingSignalGenerator and Sine, AntialiasedRamp, AntialiasedSquareWave and Vosim oscillators
- Added GenParameterMap.h: optional map of gen~ parameter names to OWL parameters, with scale and steps
- Added Gen stepped (GEN_SCALE_INT) and exponential (GEN_SCALE_LOG) parameters
- Added Faust [scale:log] exponential widget response
- Added Gen output map (GEN_OUTPUT_MAP) with optional bipolar outputs
- Added genlib spline6_interp
- Fixed Gen parameter defaults set in gen~ units instead of 0..1
- Fixed Faust patches mapping only the first 20 widgets (now 48)
- Fixed PatchMetadata limited to 20 parameters (now 40)
- Fixed Gen output parameters registered twice with OWL_METADATA and GEN_OUTPUT_MAP
- Fixed web build fast pow/exp/log lookup tables left empty
- Faust floorf, ceilf, sqrtf, rintf and roundf use FPU instructions on Cortex-M7
From ARM-software/CMSIS-DSP v1.18.0 (was V1.10.0, CMSIS 5): Include, PrivateInclude, Source, README.md, LICENSE. The sources now need DSP/PrivateInclude on the include path. arm_bitreversal2.S is gone upstream; build arm_bitreversal2.c instead. All 120 test patches build as before on OWL2 and OWL3 (same 4 known failures). Genius, cycles per block, 12 CMSIS-heavy patches (FFT, vocoder, biquad, Faust, sine): unchanged within 0.06%.
Without it CMSIS takes its one-sample-per-iteration loops on Cortex-M. Genius, cycles per block: ZoelzerMultiFilter -31%, PolySub -15%, CMSIS benchmark (biquads, vector ops, FFT) -9%, LorenzFM -5%, DubDelay -4%; FFT / spectral patches +0.3 to +3.9% (FFTShift, ChannelVocoder, SpectralFreeze).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.