summaryrefslogtreecommitdiff
path: root/include/alu.h
blob: 128d9d44f9ab4d1a6897c3fb682581e1af9ccaa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __ALU_H__
#define __ALU_H__
#include "types.h"

typedef struct couple {
    Uint32 deb, fin;
} couple;

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);

extern int errRet, Rapide;
extern Uint32 SecondResult;
#endif