Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/dfp/dfp-dbg.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 |