summaryrefslogtreecommitdiff
path: root/lib/alu.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alu.c')
-rw-r--r--lib/alu.c68
1 files changed, 48 insertions, 20 deletions
diff --git a/lib/alu.c b/lib/alu.c
index e90b0cc..4047b72 100644
--- a/lib/alu.c
+++ b/lib/alu.c
@@ -211,11 +211,13 @@ Uint32 NSHRi(Uint32 x, int i)
return (x >> i);
}
-Uint32 NSHL(Uint32 x) {
+Uint32 NSHL(Uint32 x)
+{
return NSHLi(x, 1);
}
-Uint32 NSHR(Uint32 x) {
+Uint32 NSHR(Uint32 x)
+{
return NSHRi(x, 1);
}
@@ -638,37 +640,63 @@ couple MultipliSig(Uint32 x, Uint32 y)
return (z);
}
-Uint32 NMultiplactionNonSigne(Uint32 a, Uint32 b) {
+Uint32 NMultiplactionNonSigne(Uint32 a, Uint32 b)
+{
couple z;
-
+
z = MultipliNonSig(a, b);
-
+
SecondResult = z.deb;
return z.fin;
}
-Uint32 NMultiplactionSigne(Uint32 a, Uint32 b) {
+Uint32 NMultiplactionSigne(Uint32 a, Uint32 b)
+{
couple z;
-
+
z = MultipliNonSig(a, b);
-
+
SecondResult = z.deb;
return z.fin;
}
#else
-Uint32 NAdditionNonSigne(Uint32 a, Uint32 b) {}
-Uint32 NAdditionSigne(Uint32 a, Uint32 b) {}
-Uint32 NSoustractionNonSigne(Uint32 a, Uint32 b) {}
-Uint32 NSoustractionSigne(Uint32 a, Uint32 b) {}
-Uint32 NMultiplicationNonSigne(Uint32 a, Uint32 b) {}
-Uint32 NMultiplicationSigne(Uint32 a, Uint32 b) {}
-Uint32 NDivisionNonSigne(Uint32 a, Uint32 b) {}
-Uint32 NDivisionSigne(Uint32 a, Uint32 b) {}
-Uint32 NAND(Uint32 a, Uint32 b) {}
-Uint32 NOR(Uint32 a, Uint32 b) {}
-Uint32 NSHR(Uint32 a) {}
-Uint32 NSHL(Uint32 a) {}
+Uint32 NAdditionNonSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NAdditionSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NSoustractionNonSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NSoustractionSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NMultiplicationNonSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NMultiplicationSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NDivisionNonSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NDivisionSigne(Uint32 a, Uint32 b)
+{
+}
+Uint32 NAND(Uint32 a, Uint32 b)
+{
+}
+Uint32 NOR(Uint32 a, Uint32 b)
+{
+}
+Uint32 NSHR(Uint32 a)
+{
+}
+Uint32 NSHL(Uint32 a)
+{
+}
#endif
Uint32 AdditionNonSigne(Uint32 a, Uint32 b)