diff options
| author | KEKW555 <152369890+KEKW555@users.noreply.github.com> | 2024-01-06 23:55:01 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-06 23:55:01 +0530 |
| commit | cbebaa74a9d950a4833a192715c0250893f95c42 (patch) | |
| tree | f26554123dd253545077858a9580c01e981ffd0e /include | |
| parent | f7576ba1d035da45eca4d8ecb1ac855eaad879db (diff) | |
Macro for Div and Mod
Diffstat (limited to 'include')
| -rw-r--r-- | include/gba/syscall.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gba/syscall.h b/include/gba/syscall.h index 48f35863..aa09fd9e 100644 --- a/include/gba/syscall.h +++ b/include/gba/syscall.h @@ -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 |
