20 lines
432 B
C
20 lines
432 B
C
/*
|
|
deci2hlp.h
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void MakeDeci2Hdr(DECI2_HDR *hdr, u_short l, u_short p, u_char s, u_char d);
|
|
void DumpDeci2Header(DECI2_HDR *hdr);
|
|
|
|
#define M_bswap16(x) ( (((x) >> 8) & 0x00FF) | (((x) << 8) & 0xFF00) )
|
|
#define M_bswap32(x) ( (M_bswap16(x >> 16)) | (M_bswap16(x) << 16) )
|
|
|
|
#define M_bswapself16(x) (x = M_bswap16(x))
|
|
#define M_bswapself32(x) (x = M_bswap32(x))
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|