LMMS
Loading...
Searching...
No Matches
juce::dsp::SIMDRegisterUnitTests Class Reference
Inheritance diagram for juce::dsp::SIMDRegisterUnitTests:
juce::UnitTest

Classes

struct  Tag
struct  Addition
struct  Subtraction
struct  Multiplication
struct  BitAND
struct  BitOR
struct  BitXOR
struct  InitializationTest
struct  AccessTest
struct  OperatorTests
struct  BitOperatorTests
struct  CheckComparisonOps
struct  CheckMultiplyAdd
struct  CheckMinMax
struct  CheckSum
struct  CheckAbs
struct  CheckTruncate
struct  CheckBoolEquals

Public Member Functions

 SIMDRegisterUnitTests ()
template<class TheTest>
void runTestFloatingPoint (const char *unitTestName, TheTest)
template<class TheTest>
void runTestForAllTypes (const char *unitTestName, TheTest)
template<class TheTest>
void runTestNonComplex (const char *unitTestName, TheTest)
template<class TheTest>
void runTestSigned (const char *unitTestName, TheTest)
void runTest ()
Public Member Functions inherited from juce::UnitTest
 UnitTest (const String &name, const String &category=String())
virtual ~UnitTest ()
const StringgetName () const noexcept
const StringgetCategory () const noexcept
void performTest (UnitTestRunner *runner)
virtual void initialise ()
virtual void shutdown ()
void beginTest (const String &testName)
void expect (bool testResult, const String &failureMessage=String())
template<class ValueType>
void expectEquals (ValueType actual, ValueType expected, String failureMessage=String())
template<class ValueType>
void expectNotEquals (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectGreaterThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectLessThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectGreaterOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectLessOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectWithinAbsoluteError (ValueType actual, ValueType expected, ValueType maxAbsoluteError, String failureMessage=String())
void logMessage (const String &message)
Random getRandom () const

Static Public Member Functions

template<typename type>
static bool allValuesEqualTo (const SIMDRegister< type > &vec, const type scalar)
template<typename type>
static bool vecEqualToArray (const SIMDRegister< type > &vec, const type *array)
template<typename type>
static void copy (SIMDRegister< type > &vec, const type *ptr)
Static Public Member Functions inherited from juce::UnitTest
static Array< UnitTest * > & getAllTests ()
static Array< UnitTest * > getTestsInCategory (const String &category)
static StringArray getAllCategories ()

Constructor & Destructor Documentation

◆ SIMDRegisterUnitTests()

juce::dsp::SIMDRegisterUnitTests::SIMDRegisterUnitTests ( )
inline

Member Function Documentation

◆ allValuesEqualTo()

template<typename type>
bool juce::dsp::SIMDRegisterUnitTests::allValuesEqualTo ( const SIMDRegister< type > & vec,
const type scalar )
inlinestatic

◆ copy()

template<typename type>
void juce::dsp::SIMDRegisterUnitTests::copy ( SIMDRegister< type > & vec,
const type * ptr )
inlinestatic

◆ runTest()

void juce::dsp::SIMDRegisterUnitTests::runTest ( )
inlinevirtual

Implement this method in your subclass to actually run your tests.

The content of your implementation should call beginTest() and expect() to perform the tests.

Implements juce::UnitTest.

◆ runTestFloatingPoint()

template<class TheTest>
void juce::dsp::SIMDRegisterUnitTests::runTestFloatingPoint ( const char * unitTestName,
TheTest  )
inline

◆ runTestForAllTypes()

template<class TheTest>
void juce::dsp::SIMDRegisterUnitTests::runTestForAllTypes ( const char * unitTestName,
TheTest  )
inline

◆ runTestNonComplex()

template<class TheTest>
void juce::dsp::SIMDRegisterUnitTests::runTestNonComplex ( const char * unitTestName,
TheTest  )
inline

◆ runTestSigned()

template<class TheTest>
void juce::dsp::SIMDRegisterUnitTests::runTestSigned ( const char * unitTestName,
TheTest  )
inline

◆ vecEqualToArray()

template<typename type>
bool juce::dsp::SIMDRegisterUnitTests::vecEqualToArray ( const SIMDRegister< type > & vec,
const type * array )
inlinestatic

The documentation for this class was generated from the following file: