diff options
author | Pixel <> | 2001-04-16 15:16:25 +0000 |
---|---|---|
committer | Pixel <> | 2001-04-16 15:16:25 +0000 |
commit | 0b49dded3921a652d7b75f12938e6f2d9e002344 (patch) | |
tree | 43568a181341af1bbc76dfd7726cb9c32cb54188 /lib/alu.c | |
parent | dc8734708849108741cc634c0a75d88250b38180 (diff) |
indentations diverses
Diffstat (limited to 'lib/alu.c')
-rw-r--r-- | lib/alu.c | 40 |
1 files changed, 19 insertions, 21 deletions
@@ -1,70 +1,68 @@ -#include "alu.h"
+#include "alu.h" // rajouter les overflow... -
-/*****************************************/
-/** **/
-/** GESTION DE L'UNITE DE CALCUL **/
-/** **/
-/*****************************************/
-
Uint32 AdditionNonSigne(Uint32 a, Uint32 b) + +/*****************************************/ +/** **/ +/** GESTION DE L'UNITE DE CALCUL **/ +/** **/ +/*****************************************/ +Uint32 AdditionNonSigne(Uint32 a, Uint32 b) { return (a + b); } -
Uint32 AdditionSigne(Uint32 a, Uint32 b) +Uint32 AdditionSigne(Uint32 a, Uint32 b) { return (a + b); } -
Uint32 SoustractionNonSigne(Uint32 a, Uint32 b) +Uint32 SoustractionNonSigne(Uint32 a, Uint32 b) { return (a - b); } -
Uint32 SoustractionSigne(Uint32 a, Uint32 b) +Uint32 SoustractionSigne(Uint32 a, Uint32 b) { return (a - b); } -
Uint32 MultiplicationNonSigne(Uint32 a, Uint32 b) +Uint32 MultiplicationNonSigne(Uint32 a, Uint32 b) { return (a * b); } -
Uint32 MultiplicationSigne(Uint32 a, Uint32 b) +Uint32 MultiplicationSigne(Uint32 a, Uint32 b) { return (a * b); } -
Uint32 DivisionNonSigne(Uint32 a, Uint32 b) +Uint32 DivisionNonSigne(Uint32 a, Uint32 b) { return (a / b); } -
Uint32 DivisionSigne(Uint32 a, Uint32 b) +Uint32 DivisionSigne(Uint32 a, Uint32 b) { return (a / b); } -
Uint32 AND(Uint32 a, Uint32 b) +Uint32 AND(Uint32 a, Uint32 b) { return (a & b); } -
Uint32 OR(Uint32 a, Uint32 b) +Uint32 OR(Uint32 a, Uint32 b) { return (a | b); } -
Uint32 SHL(Uint32 a) +Uint32 SHL(Uint32 a) { return (a >> 1); } -
Uint32 SHR(Uint32 a) +Uint32 SHR(Uint32 a) { return (a << 1); } - -
|