Grok 12.0.1
Classes | Namespaces | Typedefs | Functions | Variables
test_util.h File Reference
#include <string.h>
#include <cmath>
#include <string>
#include "hwy/base.h"
#include "hwy/print.h"

Go to the source code of this file.

Classes

class  hwy::RandomState
 

Namespaces

namespace  hwy
 
namespace  hwy::detail
 

Typedefs

template<typename T1 , typename T2 >
using hwy::LargestType
 

Functions

static HWY_INLINE uint32_t hwy::Random32 (RandomState *rng)
 
static HWY_INLINE uint64_t hwy::Random64 (RandomState *rng)
 
template<class T , HWY_IF_FLOAT_OR_SPECIAL(T) >
static HWY_INLINEhwy::RandomFiniteValue (RandomState *rng)
 
HWY_TEST_DLLEXPORT bool hwy::BytesEqual (const void *p1, const void *p2, size_t size, size_t *pos=nullptr)
 
void hwy::AssertStringEqual (const char *expected, const char *actual, const char *target_name, const char *filename, int line)
 
template<typename T , typename TU = MakeUnsigned<T>>
TU hwy::detail::ComputeUlpDelta (const T expected, const T actual)
 
HWY_TEST_DLLEXPORT bool hwy::detail::IsEqual (const TypeInfo &info, const void *expected_ptr, const void *actual_ptr)
 
HWY_TEST_DLLEXPORT HWY_NORETURN void hwy::detail::PrintMismatchAndAbort (const TypeInfo &info, const void *expected_ptr, const void *actual_ptr, const char *target_name, const char *filename, int line, size_t lane=0, size_t num_lanes=1)
 
HWY_TEST_DLLEXPORT void hwy::detail::AssertArrayEqual (const TypeInfo &info, const void *expected_void, const void *actual_void, size_t N, const char *target_name, const char *filename, int line)
 
template<typename T >
std::string hwy::TypeName (T, size_t N)
 
template<typename TTo , typename T , HWY_IF_NOT_FLOAT_NOR_SPECIAL(TTo) , HWY_IF_T_SIZE_LE(TTo, 4) >
hwy::WrapTo (T value)
 
template<typename TTo , typename T , HWY_IF_FLOAT_OR_SPECIAL(TTo) >
hwy::WrapTo (T value)
 
template<typename TExpected , typename TActual >
HWY_INLINE bool hwy::IsEqual (const TExpected texpected, const TActual actual)
 
template<typename TExpected , typename TActual >
HWY_INLINE void hwy::AssertEqual (const TExpected texpected, const TActual actual, const char *target_name, const char *filename, int line, size_t lane=0)
 
template<typename T >
HWY_INLINE void hwy::AssertArrayEqual (const T *expected, const T *actual, size_t count, const char *target_name, const char *filename, int line)
 
template<typename T >
HWY_INLINE void hwy::AssertArraySimilar (const T *expected, const T *actual, size_t count, const char *target_name, const char *filename, int line)
 

Variables

HWY_MAYBE_UNUSED constexpr size_t hwy::kTestMaxVectorSize = 64