fceux/attic/sexyal/convert.c

15 lines
279 B
C
Raw Normal View History

#include "sexyal.h"
#include "convert.h"
static inline uint16_t FLIP16(uint16_t b)
{
return((b<<8)|((b>>8)&0xFF));
}
static inline uint32_t FLIP32(uint32_t b)
{
return( (b<<24) | ((b>>8)&0xFF00) | ((b<<8)&0xFF0000) | ((b>>24)&0xFF) );
}
#include "convert.inc"