Index: src/arm/simulator-arm.cc |
diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
index 3ab23e20b9e05559a901c28764c68908d8850368..ccd79d3948d2bbd3a143079cec47ded98c363e3f 100644 |
--- a/src/arm/simulator-arm.cc |
+++ b/src/arm/simulator-arm.cc |
@@ -938,12 +938,7 @@ void Simulator::set_d_register_from_double(int dreg, const double& dbl) { |
// 2*sreg and 2*sreg+1. |
char buffer[2 * sizeof(vfp_register[0])]; |
memcpy(buffer, &dbl, 2 * sizeof(vfp_register[0])); |
-#ifndef BIG_ENDIAN_FLOATING_POINT |
memcpy(&vfp_register[dreg * 2], buffer, 2 * sizeof(vfp_register[0])); |
-#else |
- memcpy(&vfp_register[dreg * 2], &buffer[4], sizeof(vfp_register[0])); |
- memcpy(&vfp_register[dreg * 2 + 1], &buffer[0], sizeof(vfp_register[0])); |
-#endif |
} |
@@ -980,12 +975,7 @@ double Simulator::get_double_from_d_register(int dreg) { |
// Read the bits from the unsigned integer vfp_register[] array |
// into the double precision floating point value and return it. |
char buffer[2 * sizeof(vfp_register[0])]; |
-#ifdef BIG_ENDIAN_FLOATING_POINT |
- memcpy(&buffer[0], &vfp_register[2 * dreg + 1], sizeof(vfp_register[0])); |
- memcpy(&buffer[4], &vfp_register[2 * dreg], sizeof(vfp_register[0])); |
-#else |
memcpy(buffer, &vfp_register[2 * dreg], 2 * sizeof(vfp_register[0])); |
-#endif |
memcpy(&dm_val, buffer, 2 * sizeof(vfp_register[0])); |
return(dm_val); |
} |