Lines Matching full:sreg
930 void Simulator::set_s_register(int sreg, unsigned int value) {
931 ASSERT((sreg >= 0) && (sreg < num_s_registers));
932 vfp_register[sreg] = value;
936 unsigned int Simulator::get_s_register(int sreg) const {
937 ASSERT((sreg >= 0) && (sreg < num_s_registers));
938 return vfp_register[sreg];
942 void Simulator::set_s_register_from_float(int sreg, const float flt) {
943 ASSERT((sreg >= 0) && (sreg < num_s_registers));
945 // into the unsigned integer element of vfp_register[] given by index=sreg.
948 memcpy(&vfp_register[sreg], buffer, sizeof(vfp_register[0]));
952 void Simulator::set_s_register_from_sinteger(int sreg, const int sint) {
953 ASSERT((sreg >= 0) && (sreg < num_s_registers));
955 // vfp_register[] given by index=sreg.
958 memcpy(&vfp_register[sreg], buffer, sizeof(vfp_register[0]));
966 // 2*sreg and 2*sreg+1.
973 float Simulator::get_float_from_s_register(int sreg) {
974 ASSERT((sreg >= 0) && (sreg < num_s_registers));
980 memcpy(buffer, &vfp_register[sreg], sizeof(vfp_register[0]));
986 int Simulator::get_sinteger_from_s_register(int sreg) {
987 ASSERT((sreg >= 0) && (sreg < num_s_registers));
993 memcpy(buffer, &vfp_register[sreg], sizeof(vfp_register[0]));