#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
|
| #define | read_uint32(x) (unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1)) | ((x)[2]<<(8*2)) | ((x)[3]<<(8*3))) |
| |
| #define | read_uint16(x) (unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1))) |
| |
| #define | write_uint32(dest, src) |
| |
|
| static void | Shutdown_M (const char *Message) |
| |
| int | main (int argc, char *argv[]) |
| |
| #define read_uint16 |
( |
|
x) | |
(unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1))) |
| #define read_uint32 |
( |
|
x) | |
(unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1)) | ((x)[2]<<(8*2)) | ((x)[3]<<(8*3))) |
| #define write_uint32 |
( |
|
dest, |
|
|
|
src |
|
) |
| |
Value:do { \
(dest)[0] = ((src)&0x000000FF)>>(8*0); \
(dest)[1] = ((src)&0x0000FF00)>>(8*1); \
(dest)[2] = ((src)&0x00FF0000)>>(8*2); \
(dest)[3] = ((src)&0xFF000000)>>(8*3); \
} while(0)
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
| static void Shutdown_M |
( |
const char * |
Message) | |
|
|
static |