mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
819 B
28 lines
819 B
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */ |
|
#ifndef UINT64_H |
|
#define UINT64_H |
|
|
|
#include <inttypes.h> |
|
|
|
typedef uint64_t uint64; |
|
typedef int64_t int64; |
|
|
|
#if (defined(__i386__) || defined(__x86_64__)) && !defined(NO_UINT64_MACROS) |
|
#define uint64_pack(out,in) (*(uint64*)(out)=(in)) |
|
#define uint64_unpack(in,out) (*(out)=*(uint64*)(in)) |
|
#define uint64_read(in) (*(uint64*)(in)) |
|
void uint64_pack_big(char *out,uint64 in); |
|
void uint64_unpack_big(const char *in,uint64* out); |
|
uint64 uint64_read_big(const char *in); |
|
#else |
|
|
|
void uint64_pack(char *out,uint64 in); |
|
void uint64_pack_big(char *out,uint64 in); |
|
void uint64_unpack(const char *in,uint64* out); |
|
void uint64_unpack_big(const char *in,uint64* out); |
|
uint64 uint64_read(const char *in); |
|
uint64 uint64_read_big(const char *in); |
|
|
|
#endif |
|
|
|
#endif
|
|
|