14{
23
24#define TEST_CONVERSION(FromName, FromType, ToName, ToType, Print, Value, Expected, ExpectedStatus) \
25 do \
26 { \
27 ToName ## Result = (ToType)0xfedcba9876543210; \
28 Status = Rtl ## FromName ## To ## ToName(Value, \
29 &ToName ## Result); \
30 ok_eq_hex(Status, ExpectedStatus); \
31 ok_eq_ ## Print(ToName ## Result, Expected); \
32 } while (0)
33
39
45
51
56
62
68
76
82
91
100
101#define TEST_ADD(_Name, _Type, _Print, _Value1, _Value2, _Expected, _Status) do \
102 { \
103 _Name ## Result = (_Type)0xfedcba9876543210; \
104 Status = Rtl ## _Name ## Add(_Value1, _Value2, & _Name ## Result); \
105 ok_eq_hex(Status, _Status); \
106 ok_eq_ ## _Print(_Name ## Result, _Expected); \
107 } while (0)
108
116
131
148}
#define TEST_ADD(_Name, _Type, _Print, _Value1, _Value2, _Expected, _Status)
#define TEST_CONVERSION(FromName, FromType, ToName, ToType, Print, Value, Expected, ExpectedStatus)
#define STATUS_INTEGER_OVERFLOW