make includes fix from trunk
[minix.git] / include / minix / u64.h
blob1d5dace32adc6d734bf7a97c3133c6e0579b7281
1 /* minix/u64.h Author: Kees J. Bot
2 * 7 Dec 1995
3 * Functions to manipulate 64 bit disk addresses.
4 */
5 #ifndef _MINIX__U64_H
6 #define _MINIX__U64_H
8 #ifndef _TYPES_H
9 #include <minix/types.h>
10 #endif
12 u64_t add64(u64_t i, u64_t j);
13 u64_t add64u(u64_t i, unsigned j);
14 u64_t add64ul(u64_t i, unsigned long j);
15 u64_t sub64(u64_t i, u64_t j);
16 u64_t sub64u(u64_t i, unsigned j);
17 u64_t sub64ul(u64_t i, unsigned long j);
18 int bsr64(u64_t i);
19 unsigned diff64(u64_t i, u64_t j);
20 u64_t cvu64(unsigned i);
21 u64_t cvul64(unsigned long i);
22 unsigned cv64u(u64_t i);
23 unsigned long cv64ul(u64_t i);
24 u64_t div64(u64_t i, u64_t j);
25 unsigned long div64u(u64_t i, unsigned j);
26 u64_t div64u64(u64_t i, unsigned j);
27 u64_t rem64(u64_t i, u64_t j);
28 unsigned rem64u(u64_t i, unsigned j);
29 u64_t mul64(u64_t i, u64_t j);
30 u64_t mul64u(unsigned long i, unsigned j);
31 int cmp64(u64_t i, u64_t j);
32 int cmp64u(u64_t i, unsigned j);
33 int cmp64ul(u64_t i, unsigned long j);
34 unsigned long ex64lo(u64_t i);
35 unsigned long ex64hi(u64_t i);
36 u64_t make64(unsigned long lo, unsigned long hi);
38 #define is_zero64(i) ((i).lo == 0 && (i).hi == 0)
39 #define make_zero64(i) do { (i).lo = (i).hi = 0; } while(0)
41 #endif /* _MINIX__U64_H */