/** ** ordswap.h ---- definitions for multibyte value order swaping ** ** Copyright (c) 1998 Hartmut Schirmer ** ** This file is part of the GRX graphics library. ** ** The GRX graphics library is free software; you can redistribute it ** and/or modify it under some conditions; see the "copying.grx" file ** for details. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ** **/ extern void _GR_swap16(GR_int16 *w); extern void _GR_swap32(GR_int32 *l); #define _GR_swap16s(w) _GR_swap16((GR_int16 *)(w)) #define _GR_swap16u(w) _GR_swap16((GR_int16 *)(w)) #define _GR_swap32s(l) _GR_swap32((GR_int32 *)(l)) #define _GR_swap32u(l) _GR_swap32((GR_int32 *)(l)) #ifdef GR_int64 extern void _GR_swap64(GR_int64 *h); #define _GR_swap64s(h) _GR_swap64((GR_int64 *)(h)) #define _GR_swap64u(h) _GR_swap64((GR_int64 *)(h)) #endif