Skip to content

Commit

Permalink
Re-enable Ensemble and Tape SIMD Hysteresis ARM64 (#7836)
Browse files Browse the repository at this point in the history
* Re-enable Ensemble and Tape SIMD Hysteresis ARM64

Now we moved to actual neon rather than emulated simd, msvc 2022
no longer dumps core, so turn these back on.

* format

---------

Co-authored-by: Paul Walker (Baconpaul) <[email protected]>
  • Loading branch information
baconpaul and Paul Walker (Baconpaul) authored Nov 2, 2024
1 parent 5c59802 commit 69b139a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
11 changes: 0 additions & 11 deletions src/common/Parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,18 +1178,11 @@ void Parameter::set_type(int ctrltype)
break;
case ct_ensemble_stages:
{
#if defined(_M_ARM64EC)
valtype = vt_int;
val_min.i = 0;
val_max.i = 1;
val_default.i = 0;
#else
extern int ensemble_stage_count();
valtype = vt_int;
val_min.i = 0;
val_max.i = ensemble_stage_count() - 1;
val_default.i = 0;
#endif
break;
}
case ct_stringosc_excitation_model:
Expand Down Expand Up @@ -4071,12 +4064,8 @@ std::string Parameter::get_display(bool external, float ef) const
break;
case ct_ensemble_stages:
{
#if defined(_M_ARM64EC)
txt = "name";
#else
extern std::string ensemble_stage_name(int);
txt = ensemble_stage_name(i);
#endif
}
break;
case ct_reson_mode:
Expand Down
7 changes: 0 additions & 7 deletions src/common/dsp/Effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
* https://github.com/surge-synthesizer/surge
*/

#if !defined(_M_ARM64EC)
#include "BBDEnsembleEffect.h"
#endif

#include "BonsaiEffect.h"
#include "ChorusEffectImpl.h"
#include "CombulatorEffect.h"
Expand Down Expand Up @@ -108,11 +105,7 @@ Effect *spawn_effect(int id, SurgeStorage *storage, FxStorage *fxdata, pdata *pd
case fxt_tape:
return new chowdsp::TapeEffect(storage, fxdata, pd);
case fxt_ensemble:
#if defined(_M_ARM64EC)
return nullptr;
#else
return new BBDEnsembleEffect(storage, fxdata, pd);
#endif
case fxt_treemonster:
return new TreemonsterEffect(storage, fxdata, pd);
case fxt_waveshaper:
Expand Down
4 changes: 0 additions & 4 deletions src/common/dsp/effects/BBDEnsembleEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
* https://github.com/surge-synthesizer/surge
*/

#if !defined(_M_ARM64EC)

#include "BBDEnsembleEffect.h"

#include "sst/basic-blocks/mechanics/block-ops.h"
Expand Down Expand Up @@ -571,5 +569,3 @@ void BBDEnsembleEffect::handleStreamingMismatches(int streamingRevision,
fxdata->p[ens_output_filter].deactivated = true;
}
}

#endif
4 changes: 0 additions & 4 deletions src/common/dsp/effects/BBDEnsembleEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#ifndef SURGE_SRC_COMMON_DSP_EFFECTS_BBDENSEMBLEEFFECT_H
#define SURGE_SRC_COMMON_DSP_EFFECTS_BBDENSEMBLEEFFECT_H

#if !defined(_M_ARM64EC)

#include "Effect.h"
#include "BiquadFilter.h"
#include "DSPUtils.h"
Expand Down Expand Up @@ -111,6 +109,4 @@ class BBDEnsembleEffect : public Effect
BiquadFilter sincInputFilter;
};

#endif

#endif // SURGE_SRC_COMMON_DSP_EFFECTS_BBDENSEMBLEEFFECT_H
4 changes: 0 additions & 4 deletions src/common/dsp/effects/chowdsp/tape/HysteresisOps.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
#include "globals.h"
#include "sst/basic-blocks/dsp/FastMath.h"

#if defined(_M_ARM64EC)
#define CHOWTAPE_HYSTERESIS_USE_SIMD 0
#else
#define CHOWTAPE_HYSTERESIS_USE_SIMD 1
#endif

namespace HysteresisOps
{
Expand Down

0 comments on commit 69b139a

Please sign in to comment.