I have a compressor and to calc the attach and release time I do this
a = pow( 0.01, 1.0 / ( attackMs * sampleRate * 0.001 ) );
r = pow( 0.01, 1.0 / ( releaseMs * sampleRate * 0.001 ) );
where a, r, attackMs and releaseMs are templated so SIMDRegister types. This worked with xsimd and I have a hacky solution but I don’t want to break my template to do it by casting.