OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [libgcc/] [config/] [rs6000/] [sfp-machine.h] - Diff between revs 734 and 783

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 734 Rev 783
#define _FP_W_TYPE_SIZE         32
#define _FP_W_TYPE_SIZE         32
#define _FP_W_TYPE              unsigned long
#define _FP_W_TYPE              unsigned long
#define _FP_WS_TYPE             signed long
#define _FP_WS_TYPE             signed long
#define _FP_I_TYPE              long
#define _FP_I_TYPE              long
 
 
/* The type of the result of a floating point comparison.  This must
/* The type of the result of a floating point comparison.  This must
   match `__libgcc_cmp_return__' in GCC for the target.  */
   match `__libgcc_cmp_return__' in GCC for the target.  */
typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
#define CMPtype __gcc_CMPtype
#define CMPtype __gcc_CMPtype
 
 
#define _FP_MUL_MEAT_S(R,X,Y)                           \
#define _FP_MUL_MEAT_S(R,X,Y)                           \
  _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm)
  _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm)
#define _FP_MUL_MEAT_D(R,X,Y)                           \
#define _FP_MUL_MEAT_D(R,X,Y)                           \
  _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
  _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
#define _FP_MUL_MEAT_Q(R,X,Y)                           \
#define _FP_MUL_MEAT_Q(R,X,Y)                           \
  _FP_MUL_MEAT_4_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm)
  _FP_MUL_MEAT_4_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm)
 
 
#define _FP_DIV_MEAT_S(R,X,Y)   _FP_DIV_MEAT_1_loop(S,R,X,Y)
#define _FP_DIV_MEAT_S(R,X,Y)   _FP_DIV_MEAT_1_loop(S,R,X,Y)
#define _FP_DIV_MEAT_D(R,X,Y)   _FP_DIV_MEAT_2_udiv(D,R,X,Y)
#define _FP_DIV_MEAT_D(R,X,Y)   _FP_DIV_MEAT_2_udiv(D,R,X,Y)
#define _FP_DIV_MEAT_Q(R,X,Y)   _FP_DIV_MEAT_4_udiv(Q,R,X,Y)
#define _FP_DIV_MEAT_Q(R,X,Y)   _FP_DIV_MEAT_4_udiv(Q,R,X,Y)
 
 
#define _FP_NANFRAC_S           ((_FP_QNANBIT_S << 1) - 1)
#define _FP_NANFRAC_S           ((_FP_QNANBIT_S << 1) - 1)
#define _FP_NANFRAC_D           ((_FP_QNANBIT_D << 1) - 1), -1
#define _FP_NANFRAC_D           ((_FP_QNANBIT_D << 1) - 1), -1
#define _FP_NANFRAC_Q           ((_FP_QNANBIT_Q << 1) - 1), -1, -1, -1
#define _FP_NANFRAC_Q           ((_FP_QNANBIT_Q << 1) - 1), -1, -1, -1
#define _FP_NANSIGN_S           0
#define _FP_NANSIGN_S           0
#define _FP_NANSIGN_D           0
#define _FP_NANSIGN_D           0
#define _FP_NANSIGN_Q           0
#define _FP_NANSIGN_Q           0
 
 
#define _FP_KEEPNANFRACP 1
#define _FP_KEEPNANFRACP 1
 
 
/* Someone please check this.  */
/* Someone please check this.  */
#define _FP_CHOOSENAN(fs, wc, R, X, Y, OP)                      \
#define _FP_CHOOSENAN(fs, wc, R, X, Y, OP)                      \
  do {                                                          \
  do {                                                          \
    if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)          \
    if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)          \
        && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs))     \
        && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs))     \
      {                                                         \
      {                                                         \
        R##_s = Y##_s;                                          \
        R##_s = Y##_s;                                          \
        _FP_FRAC_COPY_##wc(R,Y);                                \
        _FP_FRAC_COPY_##wc(R,Y);                                \
      }                                                         \
      }                                                         \
    else                                                        \
    else                                                        \
      {                                                         \
      {                                                         \
        R##_s = X##_s;                                          \
        R##_s = X##_s;                                          \
        _FP_FRAC_COPY_##wc(R,X);                                \
        _FP_FRAC_COPY_##wc(R,X);                                \
      }                                                         \
      }                                                         \
    R##_c = FP_CLS_NAN;                                         \
    R##_c = FP_CLS_NAN;                                         \
  } while (0)
  } while (0)
 
 
#define __LITTLE_ENDIAN 1234
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN    4321
#define __BIG_ENDIAN    4321
 
 
#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
#  error "Both BIG_ENDIAN and LITTLE_ENDIAN defined!"
#  error "Both BIG_ENDIAN and LITTLE_ENDIAN defined!"
# endif
# endif
# define __BYTE_ORDER __BIG_ENDIAN
# define __BYTE_ORDER __BIG_ENDIAN
#else
#else
# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
#  define __BYTE_ORDER __LITTLE_ENDIAN
#  define __BYTE_ORDER __LITTLE_ENDIAN
# else
# else
#  error "Cannot determine current byte order"
#  error "Cannot determine current byte order"
# endif
# endif
#endif
#endif
 
 
 
 
/* Define ALIASNAME as a strong alias for NAME.  */
/* Define ALIASNAME as a strong alias for NAME.  */
# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
# define _strong_alias(name, aliasname) \
# define _strong_alias(name, aliasname) \
  extern __typeof (name) aliasname __attribute__ ((alias (#name)));
  extern __typeof (name) aliasname __attribute__ ((alias (#name)));
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.