vx11 / tests / abi.h
10 lines · 10 sloc · 410 bytes · c4bc47d81a04ec4c69336c7c85575735cb003365
Raw
1#ifndef VX11_TEST_ABI_H
2#define VX11_TEST_ABI_H
3#include <limits.h>
4static inline unsigned int vx11_test_long_size(void) { return sizeof(long); }
5static inline unsigned int vx11_test_int_size(void) { return sizeof(int); }
6static inline void vx11_test_store_long(long *p) {
7 *p = -(1L << (sizeof(long) * CHAR_BIT - 2));
8}
9static inline void vx11_test_store_ulong(unsigned long *p) { *p = ULONG_MAX; }
10#endif
11