1 #ifndef RH_MEMCMP_INLINE_H
 2 #define RH_MEMCMP_INLINE_H 1
 3 
 4 #include <sys/types.h>
 5 #include <stdint.h>
 6 
 7 #define rh_memcmp1(_s1,_s2)     \
 8         ( ! (*((uint8_t*)(_s1)) == *((uint8_t*)(_s2))) ) 
 9 
10 #define rh_memcmp2(_s1,_s2)     \
11         ( ! (*((uint16_t*)(_s1)) == *((uint16_t*)(_s2))) ) 
12 
13 #define rh_memcmp4(_s1,_s2)     \
14         ( ! (*((uint32_t*)(_s1)) == *((uint32_t*)(_s2))) ) 
15 
16 
17 #endif /* ! RH_MEMCMP_INLINE_H */


syntax highlighted by Code2HTML, v. 0.9.1