Chromium Code Reviews| Index: src/arm/constants-arm.h |
| =================================================================== |
| --- src/arm/constants-arm.h (revision 6591) |
| +++ src/arm/constants-arm.h (working copy) |
| @@ -380,10 +380,13 @@ |
| // VFP FPSCR constants. |
| +enum VFPConversionMode { |
| + kFPSCRRounding = 0, |
| + kDefaultRoundToZero = 1 |
| +}; |
| + |
| static const uint32_t kVFPExceptionMask = 0xf; |
| -static const uint32_t kVFPRoundingModeMask = 3 << 22; |
| static const uint32_t kVFPFlushToZeroMask = 1 << 24; |
| -static const uint32_t kVFPRoundToMinusInfinityBits = 2 << 22; |
| static const uint32_t kVFPInvalidExceptionBit = 1; |
| static const uint32_t kVFPNConditionFlagBit = 1 << 31; |
| @@ -393,14 +396,23 @@ |
| // VFP rounding modes. See ARM DDI 0406B Page A2-29. |
| -enum FPSCRRoundingModes { |
| - RN, // Round to Nearest. |
| - RP, // Round towards Plus Infinity. |
| - RM, // Round towards Minus Infinity. |
| - RZ // Round towards zero. |
| -}; |
| +enum VFPRoundingMode { |
| + RN = 0 << 22, // Round to Nearest. |
| + RP = 1 << 22, // Round towards Plus Infinity. |
| + RM = 2 << 22, // Round towards Minus Infinity. |
| + RZ = 3 << 22, // Round towards zero. |
| + // Aliases. |
| + kRoundToNearest = RN, |
| + kRoundToPlusInf = RP, |
| + kRoundToMinusInf = RM, |
| + kRoundToZero = RZ |
| +} |
|
Søren Thygesen Gjesse
2011/02/03 09:07:17
Remove a few empty lines.
|
| +; |
| + |
| +static const uint32_t kVFPRoundingModeMask = 3 << 22; |
| + |
| // ----------------------------------------------------------------------------- |
| // Hints. |