summaryrefslogtreecommitdiff
path: root/include/alu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/alu.h')
-rw-r--r--include/alu.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/alu.h b/include/alu.h
new file mode 100644
index 0000000..916a626
--- /dev/null
+++ b/include/alu.h
@@ -0,0 +1,18 @@
+#ifndef __ALU_H__
+#define __ALU_H__
+#include "archi.h"
+
+Uint32 AdditionNonSigne(Uint32 a, Uint32 b);
+Uint32 AdditionSigne(Uint32 a, Uint32 b);
+Uint32 SoustractionNonSigne(Uint32 a, Uint32 b);
+Uint32 SoustractionSigne(Uint32 a, Uint32 b);
+Uint32 MultiplicationNonSigne(Uint32 a, Uint32 b);
+Uint32 MultiplicationSigne(Uint32 a, Uint32 b);
+Uint32 DivisionNonSigne(Uint32 a, Uint32 b);
+Uint32 DivisionSigne(Uint32 a, Uint32 b);
+Uint32 AND(Uint32 a, Uint32 b);
+Uint32 OR(Uint32 a, Uint32 b);
+Uint32 SHL(Uint32 a);
+Uint32 SHR(Uint32 a);
+
+#endif \ No newline at end of file