aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/math-emu/ieee754.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/mips/math-emu/ieee754.c b/arch/mips/math-emu/ieee754.c
index 53f1d2287084..cb9214da372f 100644
--- a/arch/mips/math-emu/ieee754.c
+++ b/arch/mips/math-emu/ieee754.c
@@ -34,11 +34,17 @@
34 * Special constants 34 * Special constants
35 */ 35 */
36 36
37/*
38 * Older GCC requires the inner braces for initialization of union ieee754dp's
39 * anonymous struct member. Without an error will result.
40 */
37#define DPCNST(s, b, m) \ 41#define DPCNST(s, b, m) \
38{ \ 42{ \
39 .sign = (s), \ 43 { \
40 .bexp = (b) + DP_EBIAS, \ 44 .sign = (s), \
41 .mant = (m) \ 45 .bexp = (b) + DP_EBIAS, \
46 .mant = (m) \
47 } \
42} 48}
43 49
44const union ieee754dp __ieee754dp_spcvals[] = { 50const union ieee754dp __ieee754dp_spcvals[] = {
@@ -61,11 +67,17 @@ const union ieee754dp __ieee754dp_spcvals[] = {
61 DPCNST(0, 63, 0x0000000000000ULL), /* + 1.0e63 */ 67 DPCNST(0, 63, 0x0000000000000ULL), /* + 1.0e63 */
62}; 68};
63 69
70/*
71 * Older GCC requires the inner braces for initialization of union ieee754sp's
72 * anonymous struct member. Without an error will result.
73 */
64#define SPCNST(s, b, m) \ 74#define SPCNST(s, b, m) \
65{ \ 75{ \
76 { \
66 .sign = (s), \ 77 .sign = (s), \
67 .bexp = (b) + SP_EBIAS, \ 78 .bexp = (b) + SP_EBIAS, \
68 .mant = (m) \ 79 .mant = (m) \
80 } \
69} 81}
70 82
71const union ieee754sp __ieee754sp_spcvals[] = { 83const union ieee754sp __ieee754sp_spcvals[] = {