Revision d5138cf4 fpu/softfloat.h

b/fpu/softfloat.h
124 124
} float16;
125 125
#define float16_val(x) (((float16)(x)).v)
126 126
#define make_float16(x) __extension__ ({ float16 f16_val = {x}; f16_val; })
127
#define const_float16(x) { x }
127 128
typedef struct {
128 129
    uint32_t v;
129 130
} float32;
130 131
/* The cast ensures an error if the wrong type is passed.  */
131 132
#define float32_val(x) (((float32)(x)).v)
132 133
#define make_float32(x) __extension__ ({ float32 f32_val = {x}; f32_val; })
134
#define const_float32(x) { x }
133 135
typedef struct {
134 136
    uint64_t v;
135 137
} float64;
136 138
#define float64_val(x) (((float64)(x)).v)
137 139
#define make_float64(x) __extension__ ({ float64 f64_val = {x}; f64_val; })
140
#define const_float64(x) { x }
138 141
#else
139 142
typedef uint16_t float16;
140 143
typedef uint32_t float32;
......
145 148
#define make_float16(x) (x)
146 149
#define make_float32(x) (x)
147 150
#define make_float64(x) (x)
151
#define const_float16(x) (x)
152
#define const_float32(x) (x)
153
#define const_float64(x) (x)
148 154
#endif
149 155
#ifdef FLOATX80
150 156
typedef struct {

Also available in: Unified diff