File simd_yes.hpp

class SimdConfig : public ISimdConfig
#include <simd_yes.hpp>

Allows to configure that single instruction, multiple data (SIMD) operations should be used by an algorithm.

Public Functions

virtual bool isSimdRecommended(uint32 expectedBatchSize) const override

Returns whether SIMD operations should be used, depending on the expected batch size, or not.

Parameters:

expectedBatchSize – The typical batch size that is expected

Returns:

True, if SIMD operations should be used, false otherwise

virtual bool isSimdEnabled() const override

Returns whether SIMD operations can be used or not.

Returns:

True, if SIMD operations can be used, false otherwise