tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches
precision.hpp File Reference

Macros

#define TTS_ABSOLUTE_EQUAL(L, R, N, ...)   TTS_PRECISION(L,R,N,"unit", ::tts::absolute_distance, 8, __VA_ARGS__ )
 Checks if the absolute distance between values is less or equal to a threshold.
 
#define TTS_IEEE_EQUAL(L, R, ...)   TTS_DO_IEEE_EQUAL(L, R, __VA_ARGS__ )
 Checks if two values are exactly within a 0 ULP.
 
#define TTS_PRECISION_IMPL(LHS, RHS, N, UNIT, FUNC, PREC, FAILURE)
 
#define TTS_RELATIVE_EQUAL(L, R, N, ...)   TTS_PRECISION(L,R,N,"%" , ::tts::relative_distance, 8, __VA_ARGS__ )
 Checks if values are within a given relative distance expressed as a percentage.
 
#define TTS_ULP_EQUAL(L, R, N, ...)   TTS_PRECISION(L,R,N,"ULP" , ::tts::ulp_distance , 2, __VA_ARGS__ )
 Checks if two values are within a given ULP distance.