File simd.hpp¶
-
class ISimdConfig¶
- #include <simd.hpp>
Defines an interface for all classes that allow to configure whether single instruction, multiple data (SIMD) operations should be used by an algorithm.
Subclassed by NoSimdConfig, SimdConfig
Public Functions
-
inline virtual ~ISimdConfig()¶
-
virtual bool isSimdRecommended(uint32 expectedBatchSize) const = 0¶
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 = 0¶
Returns whether SIMD operations can be used or not.
- Returns:
True, if SIMD operations can be used, false otherwise
-
inline virtual ~ISimdConfig()¶