diff options
author | Max <mparisi@stevens.edu> | 2020-09-29 20:14:10 -0400 |
---|---|---|
committer | Max <mparisi@stevens.edu> | 2020-09-29 20:14:10 -0400 |
commit | 5e80e11773a76a052341f0e7223fac548a746660 (patch) | |
tree | 3f1a2c1f2b56dae093df43331e7fd6ec826d591e /src/Runtime/ptmf.c | |
parent | 5ae53288e8a43010954bd5c894f3c4ea09c3708b (diff) |
split MSL_C math functions, and reorganize source tree
Diffstat (limited to 'src/Runtime/ptmf.c')
-rw-r--r-- | src/Runtime/ptmf.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Runtime/ptmf.c b/src/Runtime/ptmf.c new file mode 100644 index 0000000..297039c --- /dev/null +++ b/src/Runtime/ptmf.c @@ -0,0 +1,19 @@ +#include "CPlusLib.h" + +#pragma internal on + +asm void __ptmf_scall(...) +{ + nofralloc + lwz r0, 0(r12) + lwz r11, 4(r12) + lwz r12, 8(r12) + add r3, r3, r0 + cmpwi r11, 0 + blt lbl_801C6FF8 + lwzx r12, r3, r12 + lwzx r12, r12, r11 +lbl_801C6FF8: + mtctr r12 + bctr +} |