/[qemu]/qemu/fpu/softfloat-native.h
ViewVC logotype

Diff of /qemu/fpu/softfloat-native.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by bellard, Sun Mar 13 16:54:06 2005 UTC revision 1.2 by bellard, Sun Mar 20 10:33:58 2005 UTC
# Line 127  float32 float32_rem( float32, float32  S Line 127  float32 float32_rem( float32, float32  S
127  float32 float32_sqrt( float32  STATUS_PARAM);  float32 float32_sqrt( float32  STATUS_PARAM);
128  INLINE char float32_eq( float32 a, float32 b STATUS_PARAM)  INLINE char float32_eq( float32 a, float32 b STATUS_PARAM)
129  {  {
     /* XXX: incorrect because it can raise an exception */  
130      return a == b;      return a == b;
131  }  }
132  INLINE char float32_le( float32 a, float32 b STATUS_PARAM)  INLINE char float32_le( float32 a, float32 b STATUS_PARAM)
# Line 140  INLINE char float32_lt( float32 a, float Line 139  INLINE char float32_lt( float32 a, float
139  }  }
140  INLINE char float32_eq_signaling( float32 a, float32 b STATUS_PARAM)  INLINE char float32_eq_signaling( float32 a, float32 b STATUS_PARAM)
141  {  {
142      return a == b;      return a <= b && a >= b;
143  }  }
144  INLINE char float32_le_quiet( float32 a, float32 b STATUS_PARAM)  INLINE char float32_le_quiet( float32 a, float32 b STATUS_PARAM)
145  {  {
# Line 150  INLINE char float32_lt_quiet( float32 a, Line 149  INLINE char float32_lt_quiet( float32 a,
149  {  {
150      return isless(a, b);      return isless(a, b);
151  }  }
152    INLINE char float32_unordered( float32 a, float32 b STATUS_PARAM)
153    {
154        return isunordered(a, b);
155    
156    }
157    char float32_compare( float32, float32 STATUS_PARAM );
158    char float32_compare_quiet( float32, float32 STATUS_PARAM );
159  char float32_is_signaling_nan( float32 );  char float32_is_signaling_nan( float32 );
160    
161  INLINE float32 float32_abs(float32 a)  INLINE float32 float32_abs(float32 a)
# Line 213  INLINE char float64_lt( float64 a, float Line 219  INLINE char float64_lt( float64 a, float
219  }  }
220  INLINE char float64_eq_signaling( float64 a, float64 b STATUS_PARAM)  INLINE char float64_eq_signaling( float64 a, float64 b STATUS_PARAM)
221  {  {
222      return a == b;      return a <= b && a >= b;
223  }  }
224  INLINE char float64_le_quiet( float64 a, float64 b STATUS_PARAM)  INLINE char float64_le_quiet( float64 a, float64 b STATUS_PARAM)
225  {  {
# Line 224  INLINE char float64_lt_quiet( float64 a, Line 230  INLINE char float64_lt_quiet( float64 a,
230      return isless(a, b);      return isless(a, b);
231    
232  }  }
233    INLINE char float64_unordered( float64 a, float64 b STATUS_PARAM)
234    {
235        return isunordered(a, b);
236    
237    }
238    char float64_compare( float64, float64 STATUS_PARAM );
239    char float64_compare_quiet( float64, float64 STATUS_PARAM );
240  char float64_is_signaling_nan( float64 );  char float64_is_signaling_nan( float64 );
241    
242  INLINE float64 float64_abs(float64 a)  INLINE float64 float64_abs(float64 a)
# Line 287  INLINE char floatx80_lt( floatx80 a, flo Line 300  INLINE char floatx80_lt( floatx80 a, flo
300  }  }
301  INLINE char floatx80_eq_signaling( floatx80 a, floatx80 b STATUS_PARAM)  INLINE char floatx80_eq_signaling( floatx80 a, floatx80 b STATUS_PARAM)
302  {  {
303      return a == b;      return a <= b && a >= b;
304  }  }
305  INLINE char floatx80_le_quiet( floatx80 a, floatx80 b STATUS_PARAM)  INLINE char floatx80_le_quiet( floatx80 a, floatx80 b STATUS_PARAM)
306  {  {
# Line 298  INLINE char floatx80_lt_quiet( floatx80 Line 311  INLINE char floatx80_lt_quiet( floatx80
311      return isless(a, b);      return isless(a, b);
312    
313  }  }
314    INLINE char floatx80_unordered( floatx80 a, floatx80 b STATUS_PARAM)
315    {
316        return isunordered(a, b);
317    
318    }
319    char floatx80_compare( floatx80, floatx80 STATUS_PARAM );
320    char floatx80_compare_quiet( floatx80, floatx80 STATUS_PARAM );
321  char floatx80_is_signaling_nan( floatx80 );  char floatx80_is_signaling_nan( floatx80 );
322    
323  INLINE floatx80 floatx80_abs(floatx80 a)  INLINE floatx80 floatx80_abs(floatx80 a)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26