8 bool read_ ## type(int fd, type *ptr); \
9 bool write_ ## type(int fd, type val);
11 #define DEFVEC(type) \
12 typedef struct {type x, y;} v2 ## type; \
14 typedef struct {type x, y, z;} v3 ## type; \
17 #define DEFTYP(from, to) \
22 #define DEFTYPES(bits) \
23 DEFTYP(int ## bits ## _t, s ## bits) \
24 DEFTYP(uint ## bits ## _t, u ## bits)