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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgcc/] [config/] [arm/] [sfp-machine.h] - Blame information for rev 734

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 734 jeremybenn
#define _FP_W_TYPE_SIZE         32
2
#define _FP_W_TYPE              unsigned long
3
#define _FP_WS_TYPE             signed long
4
#define _FP_I_TYPE              long
5
 
6
/* The type of the result of a floating point comparison.  This must
7
   match `__libgcc_cmp_return__' in GCC for the target.  */
8
typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
9
#define CMPtype __gcc_CMPtype
10
 
11
#define _FP_MUL_MEAT_S(R,X,Y)                           \
12
  _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm)
13
#define _FP_MUL_MEAT_D(R,X,Y)                           \
14
  _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
15
#define _FP_MUL_MEAT_Q(R,X,Y)                           \
16
  _FP_MUL_MEAT_4_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm)
17
 
18
#define _FP_DIV_MEAT_S(R,X,Y)   _FP_DIV_MEAT_1_loop(S,R,X,Y)
19
#define _FP_DIV_MEAT_D(R,X,Y)   _FP_DIV_MEAT_2_udiv(D,R,X,Y)
20
#define _FP_DIV_MEAT_Q(R,X,Y)   _FP_DIV_MEAT_4_udiv(Q,R,X,Y)
21
 
22
#define _FP_NANFRAC_H           ((_FP_QNANBIT_H << 1) - 1)
23
#define _FP_NANFRAC_S           ((_FP_QNANBIT_S << 1) - 1)
24
#define _FP_NANFRAC_D           ((_FP_QNANBIT_D << 1) - 1), -1
25
#define _FP_NANFRAC_Q           ((_FP_QNANBIT_Q << 1) - 1), -1, -1, -1
26
#define _FP_NANSIGN_H           0
27
#define _FP_NANSIGN_S           0
28
#define _FP_NANSIGN_D           0
29
#define _FP_NANSIGN_Q           0
30
 
31
#define _FP_KEEPNANFRACP 1
32
 
33
/* Someone please check this.  */
34
#define _FP_CHOOSENAN(fs, wc, R, X, Y, OP)                      \
35
  do {                                                          \
36
    if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)          \
37
        && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs))     \
38
      {                                                         \
39
        R##_s = Y##_s;                                          \
40
        _FP_FRAC_COPY_##wc(R,Y);                                \
41
      }                                                         \
42
    else                                                        \
43
      {                                                         \
44
        R##_s = X##_s;                                          \
45
        _FP_FRAC_COPY_##wc(R,X);                                \
46
      }                                                         \
47
    R##_c = FP_CLS_NAN;                                         \
48
  } while (0)
49
 
50
#define __LITTLE_ENDIAN 1234
51
#define __BIG_ENDIAN    4321
52
 
53
#if defined __ARMEB__
54
# define __BYTE_ORDER __BIG_ENDIAN
55
#else
56
# define __BYTE_ORDER __LITTLE_ENDIAN
57
#endif
58
 
59
 
60
/* Define ALIASNAME as a strong alias for NAME.  */
61
# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
62
# define _strong_alias(name, aliasname) \
63
  extern __typeof (name) aliasname __attribute__ ((alias (#name)));
64
 
65
#ifdef __ARM_EABI__
66
/* Rename functions to their EABI names.  */
67
/* The comparison functions need wrappers for EABI semantics, so
68
   leave them unmolested.  */
69
#define __negsf2        __aeabi_fneg
70
#define __subsf3        __aeabi_fsub
71
#define __addsf3        __aeabi_fadd
72
#define __floatunsisf   __aeabi_ui2f
73
#define __floatsisf     __aeabi_i2f
74
#define __floatundisf   __aeabi_ul2f
75
#define __floatdisf     __aeabi_l2f
76
#define __mulsf3        __aeabi_fmul
77
#define __divsf3        __aeabi_fdiv
78
#define __unordsf2      __aeabi_fcmpun
79
#define __fixsfsi       __aeabi_f2iz
80
#define __fixunssfsi    __aeabi_f2uiz
81
#define __fixsfdi       __aeabi_f2lz
82
#define __fixunssfdi    __aeabi_f2ulz
83
#define __floatdisf     __aeabi_l2f
84
 
85
#define __negdf2        __aeabi_dneg
86
#define __subdf3        __aeabi_dsub
87
#define __adddf3        __aeabi_dadd
88
#define __floatunsidf   __aeabi_ui2d
89
#define __floatsidf     __aeabi_i2d
90
#define __extendsfdf2   __aeabi_f2d
91
#define __truncdfsf2    __aeabi_d2f
92
#define __floatundidf   __aeabi_ul2d
93
#define __floatdidf     __aeabi_l2d
94
#define __muldf3        __aeabi_dmul
95
#define __divdf3        __aeabi_ddiv
96
#define __unorddf2      __aeabi_dcmpun
97
#define __fixdfsi       __aeabi_d2iz
98
#define __fixunsdfsi    __aeabi_d2uiz
99
#define __fixdfdi       __aeabi_d2lz
100
#define __fixunsdfdi    __aeabi_d2ulz
101
#define __floatdidf     __aeabi_l2d
102
#define __extendhfsf2   __gnu_h2f_ieee
103
#define __truncsfhf2    __gnu_f2h_ieee
104
 
105
#endif /* __ARM_EABI__ */

powered by: WebSVN 2.1.0

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