summaryrefslogtreecommitdiff
path: root/lib/alu.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alu.c')
-rw-r--r--lib/alu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/alu.c b/lib/alu.c
index 14136a0..5a2819a 100644
--- a/lib/alu.c
+++ b/lib/alu.c
@@ -42,7 +42,7 @@ Uint32 RMultiplicationNonSigne(Uint32 a, Uint32 b)
temp = a * b;
SecondResult = temp >> 32;
- return (temp & ((1 << 32) -1));
+ return (temp);
}
Uint32 RMultiplicationSigne(Uint32 a, Uint32 b)
@@ -51,7 +51,7 @@ Uint32 RMultiplicationSigne(Uint32 a, Uint32 b)
temp = a * b;
SecondResult = temp >> 32;
- return (temp & ((1 << 32) -1));
+ return (temp);
}
Uint32 RDivisionNonSigne(Uint32 a, Uint32 b)
@@ -62,7 +62,7 @@ Uint32 RDivisionNonSigne(Uint32 a, Uint32 b)
Uint32 RDivisionSigne(Uint32 a, Uint32 b)
{
- SecondResuld = a % b;
+ SecondResult = a % b;
return (a / b);
}