Skip to content

Commit

Permalink
Macro for Div and Mod
Browse files Browse the repository at this point in the history
  • Loading branch information
KEKW555 authored Jan 6, 2024
1 parent f7576ba commit cbebaa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gba/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ int MultiBoot(struct MultiBootParam* mp);

s32 Div(s32 num, s32 denom);

#define DivAndMod(num, denom) ((union SplitDWord)(*(MultiReturnTypeTwoS32Arg)(&Div))(num, denom))

#endif // SYSCALL_H

0 comments on commit cbebaa7

Please sign in to comment.