summaryrefslogtreecommitdiff
path: root/src/os/math
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-04-15 10:53:58 -0600
committerGitHub <noreply@github.com>2024-04-15 10:53:58 -0600
commitd9c1ebb6263cc3a2d494c9ece53edb3c8a2a4b39 (patch)
treecffb2a939f6df969461949340fbedc6260241831 /src/os/math
parent3dd4c071e1ecdf15a30aa37187283f0b974dc825 (diff)
Initial gcc Support (#568)
* Added GCC
Diffstat (limited to 'src/os/math')
-rw-r--r--src/os/math/llmuldiv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os/math/llmuldiv.c b/src/os/math/llmuldiv.c
index e64b9d0c8..2af91aae5 100644
--- a/src/os/math/llmuldiv.c
+++ b/src/os/math/llmuldiv.c
@@ -7,7 +7,7 @@ unsigned long long __ull_rem(unsigned long long a0, unsigned long long a1)
return a0 % a1;
}
unsigned long long __ull_div(unsigned long long a0, unsigned long long a1)
-{
+{
return a0 / a1;
}
@@ -34,19 +34,19 @@ unsigned long long __ll_mul(unsigned long long a0, unsigned long long a1)
void __ull_divremi(unsigned long long *div, unsigned long long *rem, unsigned long long a2, unsigned short a3)
{
*div = a2 / a3;
- *rem = a2 % a3;
-}
+ *rem = a2 % a3;
+}
long long __ll_mod(long long a0, long long a1)
{
long long tmp = a0 % a1;
if ((tmp < 0 && a1 > 0) || (tmp > 0 && a1 < 0))
{
- tmp += a1;
+ tmp += a1;
}
return tmp;
}
-
+
long long __ll_rshift(long long a0, long long a1)
{
return a0 >> a1;