ucmpdi2.c 377 B

1234567891011121314151617
  1. #include "libgcc.h"
  2. word_type __ucmpdi2(DWtype a, DWtype b)
  3. {
  4. const DWunion au = {.ll = a};
  5. const DWunion bu = {.ll = b};
  6. if ((UWtype) au.s.high < (UWtype) bu.s.high)
  7. return 0;
  8. else if ((UWtype) au.s.high > (UWtype) bu.s.high)
  9. return 2;
  10. if ((UWtype) au.s.low < (UWtype) bu.s.low)
  11. return 0;
  12. else if ((UWtype) au.s.low > (UWtype) bu.s.low)
  13. return 2;
  14. return 1;
  15. }