Chromium Code Reviews| Index: runtime/vm/constants_arm.h |
| =================================================================== |
| --- runtime/vm/constants_arm.h (revision 25008) |
| +++ runtime/vm/constants_arm.h (working copy) |
| @@ -164,6 +164,15 @@ |
| } |
| +static inline SRegister EvenSRegisterOf(DRegister d) { |
| + return static_cast<SRegister>(d * 2); |
| +} |
| + |
| +static inline SRegister OddSRegisterOf(DRegister d) { |
| + return static_cast<SRegister>((d * 2) + 1); |
| +} |
| + |
| + |
| // Register aliases for floating point scratch registers. |
| const QRegister QTMP = Q7; // Overlaps with DTMP, STMP. |
| const DRegister DTMP = D14; // Overlaps with STMP. |
|
regis
2013/07/16 00:23:30
... = EvenDRegisterOf(QTMP);
zra
2013/07/16 16:11:01
Done.
|