diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-09-29 20:20:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 20:20:47 -0400 |
commit | 7279de0b20fea0ba36a96e7d998ad37fac14365a (patch) | |
tree | 3f1a2c1f2b56dae093df43331e7fd6ec826d591e /src/Runtime/ptmf.c | |
parent | bb28572125c45ec20f5fbf85120cd71fb2486bac (diff) | |
parent | 5e80e11773a76a052341f0e7223fac548a746660 (diff) |
Merge pull request #107 from mparisi20/master
split MSL_C math library 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 +} |