13{
22
23#define TEST_CONVERSION(FromName, FromType, ToName, ToType, Print, Value, Expected, ExpectedStatus) \
24 do \
25 { \
26 ToName ## Result = (ToType)0xfedcba9876543210; \
27 Status = Rtl ## FromName ## To ## ToName(Value, \
28 &ToName ## Result); \
29 ok_eq_hex(Status, ExpectedStatus); \
30 ok_eq_ ## Print(ToName ## Result, Expected); \
31 } while (0)
32
38
44
50
55
61
67
75
81
90
99
100#define TEST_ADD(_Name, _Type, _Print, _Value1, _Value2, _Expected, _Status) do \
101 { \
102 _Name ## Result = (_Type)0xfedcba9876543210; \
103 Status = Rtl ## _Name ## Add(_Value1, _Value2, & _Name ## Result); \
104 ok_eq_hex(Status, _Status); \
105 ok_eq_ ## _Print(_Name ## Result, _Expected); \
106 } while (0)
107
115
130
147}
#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