sfp-machine64.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #define _FP_W_TYPE_SIZE 64
  2. #define _FP_W_TYPE unsigned long
  3. #define _FP_WS_TYPE signed long
  4. #define _FP_I_TYPE long
  5. typedef int TItype __attribute__ ((mode (TI)));
  6. typedef unsigned int UTItype __attribute__ ((mode (TI)));
  7. #define TI_BITS (__CHAR_BIT__ * (int)sizeof(TItype))
  8. /* The type of the result of a floating point comparison. This must
  9. match `__libgcc_cmp_return__' in GCC for the target. */
  10. typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
  11. #define CMPtype __gcc_CMPtype
  12. #define _FP_MUL_MEAT_S(R,X,Y) \
  13. _FP_MUL_MEAT_1_imm(_FP_WFRACBITS_S,R,X,Y)
  14. #define _FP_MUL_MEAT_D(R,X,Y) \
  15. _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
  16. #define _FP_MUL_MEAT_Q(R,X,Y) \
  17. _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
  18. #define _FP_DIV_MEAT_S(R,X,Y) _FP_DIV_MEAT_1_imm(S,R,X,Y,_FP_DIV_HELP_imm)
  19. #define _FP_DIV_MEAT_D(R,X,Y) _FP_DIV_MEAT_1_udiv_norm(D,R,X,Y)
  20. #define _FP_DIV_MEAT_Q(R,X,Y) _FP_DIV_MEAT_2_udiv(Q,R,X,Y)
  21. #define _FP_NANFRAC_S _FP_QNANBIT_S
  22. #define _FP_NANFRAC_D _FP_QNANBIT_D
  23. #define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0
  24. #define _FP_NANSIGN_S 1
  25. #define _FP_NANSIGN_D 1
  26. #define _FP_NANSIGN_Q 1
  27. #define _FP_KEEPNANFRACP 1
  28. #define _FP_QNANNEGATEDP 0
  29. #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \
  30. do { \
  31. if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs) \
  32. && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs)) \
  33. { \
  34. R##_s = Y##_s; \
  35. _FP_FRAC_COPY_##wc(R,Y); \
  36. } \
  37. else \
  38. { \
  39. R##_s = X##_s; \
  40. _FP_FRAC_COPY_##wc(R,X); \
  41. } \
  42. R##_c = FP_CLS_NAN; \
  43. } while (0)
  44. #define _FP_TININESS_AFTER_ROUNDING 0
  45. #define __LITTLE_ENDIAN 1234
  46. #define __BIG_ENDIAN 4321
  47. #if defined __BIG_ENDIAN__
  48. #define __BYTE_ORDER __BIG_ENDIAN
  49. #else
  50. #define __BYTE_ORDER __LITTLE_ENDIAN
  51. #endif
  52. /* Define ALIASNAME as a strong alias for NAME. */
  53. # define strong_alias(name, aliasname) _strong_alias(name, aliasname)
  54. # define _strong_alias(name, aliasname) \
  55. extern __typeof (name) aliasname __attribute__ ((alias (#name)));