Go to the documentation of this file. 62 #define MEM_ALIGNMENT 4 63 #define MEM_ALIGN(mem) ((void*)(((u32_t)(mem)+MEM_ALIGNMENT-1)&~(u32_t)(MEM_ALIGNMENT-1))) 64 #define MEM_ALIGN_SIZE(size) (((size)+MEM_ALIGNMENT-1)&~(u32_t)(MEM_ALIGNMENT-1)) 67 #if BYTE_ORDER == BIG_ENDIAN 69 #define htole16 bswap16 72 #define htole32 bswap32 75 #define htole64 bswap64 78 #define le16toh bswap16 81 #define le32toh bswap32 84 #define le64toh bswap64 113 #if LIBC_MEMFUNCREPLACE 114 static __inline__
void __memcpy(
void *dest,
const void *
src,
s32_t len)
133 #define MEMCPY __memcpy 134 #define MEMSET __memset 136 #define MEMCPY memcpy 137 #define MEMSET memset 142 #define LOG(fmt, ...) fprintf(stderr, "[BTLOG] " __FILE__ ":%i: " fmt "\n", __LINE__, ##__VA_ARGS__) 144 #define LOG(fmt, ...) 149 #define ERROR(fmt,...) fprintf(stderr, "[BTERR] " __FILE__ ":%i: " fmt "\n", __LINE__, ##__VA_ARGS__) 151 #define ERROR(fmt, ...)
s8 s8_t
Definition: cc.h:44
GLenum GLsizei len
Definition: glext.h:7389
const GLubyte * c
Definition: glext.h:9812
GLenum src
Definition: glext.h:6980
u8 u8_t
Definition: cc.h:43
s32 s32_t
Definition: cc.h:48