Buckets:

soixantesept's picture
download
raw
884 Bytes
#include "MixerFactory.hpp"
MixerFactory::MixerFactory(const Shared* const sh) : shared(sh) {}
Mixer* MixerFactory::createMixer(const int n, const int m, const int s, const int promoted) const {
const SIMDType chosenSimd = shared->chosenSimd;
if (chosenSimd == SIMDType::SIMD_NONE) {
return new Mixer_Scalar(shared, n, m, s, promoted);
}
#ifdef X64_SIMD_AVAILABLE
else if (chosenSimd >= SIMDType::SIMD_AVX512) {
return new Mixer_AVX512(shared, n, m, s, promoted);
}
else if (chosenSimd >= SIMDType::SIMD_AVX2) {
return new Mixer_AVX2(shared, n, m, s, promoted);
}
else if (chosenSimd >= SIMDType::SIMD_SSE2) {
return new Mixer_SSE2(shared, n, m, s, promoted);
}
#endif
#ifdef ARM_NEON_AVAILABLE
else if (chosenSimd == SIMDType::SIMD_NEON) {
return new Mixer_Neon(shared, n, m, s, promoted);
}
#endif
assert(false);
return nullptr;
}

Xet Storage Details

Size:
884 Bytes
·
Xet hash:
27ff51edfe92cbfc48ae4e0824801dcdb8f202728992b4216b2f8dfc2a48238b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.