| 1 |
#ifdef __cplusplus |
| 2 |
typedef float _Decimal32 __attribute__((mode(SD))); |
| 3 |
typedef float _Decimal64 __attribute__((mode(DD))); |
| 4 |
typedef float _Decimal128 __attribute__((mode(TD))); |
| 5 |
|
| 6 |
#define EXTERN extern "C" |
| 7 |
#else |
| 8 |
#define EXTERN extern |
| 9 |
#endif |
| 10 |
|
| 11 |
int failures; |
| 12 |
|
| 13 |
#ifdef DBG |
| 14 |
extern int printf (const char *, ...); |
| 15 |
#define FAILURE { printf ("failed at line %d\n", __LINE__); failures++; } |
| 16 |
#define FINISH if (failures != 0) __builtin_abort (); return 0; |
| 17 |
#else |
| 18 |
#define FAILURE __builtin_abort (); |
| 19 |
#define FINISH return 0; |
| 20 |
#endif |