Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / minix / u64.h @ 13

History | View | Annotate | Download (473 Bytes)

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
#include <sys/types.h>
9

    
10
static inline unsigned long ex64lo(u64_t i)
11
{
12
        return (unsigned long)i;
13
}
14

    
15
static inline unsigned long ex64hi(u64_t i)
16
{
17
        return (unsigned long)(i>>32);
18
}
19

    
20
static inline u64_t make64(unsigned long lo, unsigned long hi)
21
{
22
        return ((u64_t)hi << 32) | (u64_t)lo;
23
}
24

    
25
#endif /* _MINIX__U64_H */