1
0
Fork 0
forked from Miroirs/x49gp
This commit is contained in:
Gwenhael Le Moine 2024-10-23 15:07:48 +02:00
parent 32c4902b81
commit 285051ed86
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -4,6 +4,7 @@
#ifndef _X49GP_BYTEORDER_H
#define _X49GP_BYTEORDER_H 1
#include <stdint.h>
#include <sys/types.h>
static __inline__ uint16_t swab16( uint16_t x ) { return ( ( x & 0xff00 ) >> 8 ) | ( ( x & 0x00ff ) << 8 ); }