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
|
---|
7 |
|
---|
8 | #ifndef _TYPES_H
|
---|
9 | #include <sys/types.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
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 | unsigned diff64(u64_t i, u64_t j);
|
---|
19 | u64_t cvu64(unsigned i);
|
---|
20 | u64_t cvul64(unsigned long i);
|
---|
21 | unsigned cv64u(u64_t i);
|
---|
22 | unsigned long cv64ul(u64_t i);
|
---|
23 | unsigned long div64u(u64_t i, unsigned j);
|
---|
24 | unsigned rem64u(u64_t i, unsigned j);
|
---|
25 | u64_t mul64u(unsigned long i, unsigned j);
|
---|
26 | int cmp64(u64_t i, u64_t j);
|
---|
27 | int cmp64u(u64_t i, unsigned j);
|
---|
28 | int cmp64ul(u64_t i, unsigned long j);
|
---|
29 | unsigned long ex64lo(u64_t i);
|
---|
30 | unsigned long ex64hi(u64_t i);
|
---|
31 | u64_t make64(unsigned long lo, unsigned long hi);
|
---|
32 |
|
---|
33 | #endif /* _MINIX__U64_H */
|
---|