[Android] Add MoveVariableToFloatReg

This commit is contained in:
zilmar 2016-10-01 09:21:40 +10:00
parent 51109ffe27
commit 24973f49e2
2 changed files with 7 additions and 0 deletions

View File

@ -461,6 +461,12 @@ void CArmOps::MoveVariableToArmReg(void * Variable, const char * VariableName, A
LoadArmRegPointerToArmReg(reg,reg,0); LoadArmRegPointerToArmReg(reg,reg,0);
} }
void CArmOps::MoveVariableToFloatReg(void * Variable, const char * VariableName, ArmFpuSingle reg)
{
MoveConstToArmReg(Arm_R0,(uint32_t)Variable,VariableName);
LoadArmRegPointerToFloatReg(Arm_R0,reg,0);
}
void CArmOps::PushArmReg(uint16_t Registers) void CArmOps::PushArmReg(uint16_t Registers)
{ {
if (Registers == 0) if (Registers == 0)

View File

@ -158,6 +158,7 @@ protected:
static void MoveConstToVariable(uint32_t Const, void * Variable, const char * VariableName); static void MoveConstToVariable(uint32_t Const, void * Variable, const char * VariableName);
static void MoveFloatRegToVariable(ArmFpuSingle reg, void * Variable, const char * VariableName); static void MoveFloatRegToVariable(ArmFpuSingle reg, void * Variable, const char * VariableName);
static void MoveVariableToArmReg(void * Variable, const char * VariableName, ArmReg reg); static void MoveVariableToArmReg(void * Variable, const char * VariableName, ArmReg reg);
static void MoveVariableToFloatReg(void * Variable, const char * VariableName, ArmFpuSingle reg);
static void PushArmReg(uint16_t Registers); static void PushArmReg(uint16_t Registers);
static void PopArmReg(uint16_t Registers); static void PopArmReg(uint16_t Registers);
static void ShiftRightSignImmed(ArmReg DestReg, ArmReg SourceReg, uint32_t shift); static void ShiftRightSignImmed(ArmReg DestReg, ArmReg SourceReg, uint32_t shift);