Revision eb38c52c linux-user/arm/nwfpe/fpa11.c

b/linux-user/arm/nwfpe/fpa11.c
54 54
  fpa11->fpsr = FP_EMULATOR | BIT_AC;
55 55

  
56 56
  /* FPCR: set SB, AB and DA bits, clear all others */
57
#if MAINTAIN_FPCR
57
#ifdef MAINTAIN_FPCR
58 58
  fpa11->fpcr = MASK_RESET;
59 59
#endif
60 60
}
......
64 64
    int rounding_mode;
65 65
   FPA11 *fpa11 = GET_FPA11();
66 66

  
67
#if MAINTAIN_FPCR
67
#ifdef MAINTAIN_FPCR
68 68
   fpa11->fpcr &= ~MASK_ROUNDING_MODE;
69 69
#endif
70 70
   switch (opcode & MASK_ROUNDING_MODE)
......
72 72
      default:
73 73
      case ROUND_TO_NEAREST:
74 74
         rounding_mode = float_round_nearest_even;
75
#if MAINTAIN_FPCR
75
#ifdef MAINTAIN_FPCR
76 76
         fpa11->fpcr |= ROUND_TO_NEAREST;
77 77
#endif
78 78
      break;
79 79

  
80 80
      case ROUND_TO_PLUS_INFINITY:
81 81
         rounding_mode = float_round_up;
82
#if MAINTAIN_FPCR
82
#ifdef MAINTAIN_FPCR
83 83
         fpa11->fpcr |= ROUND_TO_PLUS_INFINITY;
84 84
#endif
85 85
      break;
86 86

  
87 87
      case ROUND_TO_MINUS_INFINITY:
88 88
         rounding_mode = float_round_down;
89
#if MAINTAIN_FPCR
89
#ifdef MAINTAIN_FPCR
90 90
         fpa11->fpcr |= ROUND_TO_MINUS_INFINITY;
91 91
#endif
92 92
      break;
93 93

  
94 94
      case ROUND_TO_ZERO:
95 95
         rounding_mode = float_round_to_zero;
96
#if MAINTAIN_FPCR
96
#ifdef MAINTAIN_FPCR
97 97
         fpa11->fpcr |= ROUND_TO_ZERO;
98 98
#endif
99 99
      break;
......
105 105
{
106 106
    int rounding_precision;
107 107
   FPA11 *fpa11 = GET_FPA11();
108
#if MAINTAIN_FPCR
108
#ifdef MAINTAIN_FPCR
109 109
   fpa11->fpcr &= ~MASK_ROUNDING_PRECISION;
110 110
#endif
111 111
   switch (opcode & MASK_ROUNDING_PRECISION)
112 112
   {
113 113
      case ROUND_SINGLE:
114 114
         rounding_precision = 32;
115
#if MAINTAIN_FPCR
115
#ifdef MAINTAIN_FPCR
116 116
         fpa11->fpcr |= ROUND_SINGLE;
117 117
#endif
118 118
      break;
119 119

  
120 120
      case ROUND_DOUBLE:
121 121
         rounding_precision = 64;
122
#if MAINTAIN_FPCR
122
#ifdef MAINTAIN_FPCR
123 123
         fpa11->fpcr |= ROUND_DOUBLE;
124 124
#endif
125 125
      break;
126 126

  
127 127
      case ROUND_EXTENDED:
128 128
         rounding_precision = 80;
129
#if MAINTAIN_FPCR
129
#ifdef MAINTAIN_FPCR
130 130
         fpa11->fpcr |= ROUND_EXTENDED;
131 131
#endif
132 132
      break;

Also available in: Unified diff