source: branches/minix3-book/include/minix/u64.h@ 23

Last change on this file since 23 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 933 bytes
Line 
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
12u64_t add64(u64_t i, u64_t j);
13u64_t add64u(u64_t i, unsigned j);
14u64_t add64ul(u64_t i, unsigned long j);
15u64_t sub64(u64_t i, u64_t j);
16u64_t sub64u(u64_t i, unsigned j);
17u64_t sub64ul(u64_t i, unsigned long j);
18unsigned diff64(u64_t i, u64_t j);
19u64_t cvu64(unsigned i);
20u64_t cvul64(unsigned long i);
21unsigned cv64u(u64_t i);
22unsigned long cv64ul(u64_t i);
23unsigned long div64u(u64_t i, unsigned j);
24unsigned rem64u(u64_t i, unsigned j);
25u64_t mul64u(unsigned long i, unsigned j);
26int cmp64(u64_t i, u64_t j);
27int cmp64u(u64_t i, unsigned j);
28int cmp64ul(u64_t i, unsigned long j);
29unsigned long ex64lo(u64_t i);
30unsigned long ex64hi(u64_t i);
31u64_t make64(unsigned long lo, unsigned long hi);
32
33#endif /* _MINIX__U64_H */
Note: See TracBrowser for help on using the repository browser.