summaryrefslogtreecommitdiff
path: root/lib/alu.c
diff options
context:
space:
mode:
authorPixel <>2001-04-17 00:46:47 +0000
committerPixel <>2001-04-17 00:46:47 +0000
commit4f2aa7d436bb50cef3f9a551f79fa03ea275ab77 (patch)
tree51984db4e75ce1ac8e1bfe6f079938a54e056bad /lib/alu.c
parentd3050fa05ca0bc9231eca96bcbf62d1ec60c9f90 (diff)
POUEEEEEEEEEEEEEET
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)