Slight tweak to PPC Macros

This commit is contained in:
dingusdev 2024-03-24 15:35:11 -07:00
parent fafbd9a04f
commit 505b5e6468
2 changed files with 2 additions and 4 deletions

View File

@ -30,12 +30,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <cmath>
#include <cfloat>
// Used for FP calcs
// Storage and register retrieval functions for the floating point functions.
#define GET_FPR(reg) ppc_state.fpr[(reg)].dbl64_r
double fp_return_double(uint32_t reg) {
return ppc_state.fpr[reg].dbl64_r;
}

View File

@ -112,6 +112,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
int reg_d = (opcode >> 21) & 31; \
int reg_b = (opcode >> 11) & 31;
#define GET_FPR(reg) ppc_state.fpr[(reg)].dbl64_r
#define ppc_grab_regsfpdiab(opcode) \
int reg_d = (opcode >> 21) & 31; \
int reg_a = (opcode >> 16) & 31; \