From 11d815cfd304da3f1a0fd4178db932ad6c47d8ce Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 23 Dec 2018 15:55:12 -0800 Subject: Repack some AmbiUpsampler fields for better access patterns --- Alc/bformatdec.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Alc/bformatdec.h') diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h index b5824545..ba6ceaa2 100644 --- a/Alc/bformatdec.h +++ b/Alc/bformatdec.h @@ -62,13 +62,14 @@ public: private: alignas(16) ALfloat mSamples[sNumBands][BUFFERSIZE]; - BandSplitter mXOver[4]; - - std::array,sNumBands>,4> mGains; + struct { + BandSplitter XOver; + std::array,sNumBands> Gains; + } mInput[4]; public: void reset(const ALCdevice *device); - void process(ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE], const ALsizei OutChannels, const ALfloat (*RESTRICT InSamples)[BUFFERSIZE], const ALsizei SamplesToDo); + void process(ALfloat (*OutBuffer)[BUFFERSIZE], const ALsizei OutChannels, const ALfloat (*InSamples)[BUFFERSIZE], const ALsizei SamplesToDo); DEF_NEWDEL(AmbiUpsampler) }; -- cgit v1.2.3