/bionic/libc/include/ |
D | dlfcn.h | 135 #define RTLD_DEFAULT __BIONIC_CAST(reinterpret_cast, void*, 0) 141 #define RTLD_NEXT __BIONIC_CAST(reinterpret_cast, void*, -1L) 175 #define RTLD_DEFAULT __BIONIC_CAST(reinterpret_cast, void*, 0xffffffff) 177 #define RTLD_NEXT __BIONIC_CAST(reinterpret_cast, void*, 0xfffffffe)
|
D | ctype.h | 88 return (__BIONIC_CAST(static_cast, unsigned, __ch) < ' ') || __ch == 0x7f; in iscntrl() 170 return __BIONIC_CAST(static_cast, unsigned, __ch) < 0x80; in isascii()
|
D | assert.h | 49 #define __assert_no_op __BIONIC_CAST(static_cast, void, 0)
|
D | semaphore.h | 46 #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0)
|
D | locale.h | 107 #define LC_GLOBAL_LOCALE __BIONIC_CAST(reinterpret_cast, locale_t, -1L)
|
D | signal.h | 49 #define SIG_HOLD __BIONIC_CAST(reinterpret_cast, sighandler_t, 2)
|
/bionic/libc/include/sys/ |
D | endian.h | 48 #define __swap64(x) __BIONIC_CAST(static_cast,uint64_t,__builtin_bswap64(x)) 73 #define NTOHL(x) (x) = ntohl(__BIONIC_CAST(static_cast,u_int32_t,(x))) 74 #define NTOHS(x) (x) = ntohs(__BIONIC_CAST(static_cast,u_int16_t,(x))) 75 #define HTONL(x) (x) = htonl(__BIONIC_CAST(static_cast,u_int32_t,(x))) 76 #define HTONS(x) (x) = htons(__BIONIC_CAST(static_cast,u_int16_t,(x)))
|
D | cdefs.h | 58 #define __BIONIC_CAST(_k,_t,_v) (_k<_t>(_v)) macro 60 #define __BIONIC_CAST(_k,_t,_v) ((_t) (_v)) macro
|
D | mman.h | 43 #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
|
D | select.h | 63 #define __FDS_BITS(type,set) (__BIONIC_CAST(static_cast, type, set)->fds_bits)
|
/bionic/libc/include/bits/ |
D | termios_inlines.h | 49 return __BIONIC_CAST(static_cast, speed_t, s->c_cflag & CBAUD); in cfgetspeed() 91 return ioctl(fd, TCSBRK, __BIONIC_CAST(static_cast, unsigned long, 1)); in tcdrain() 95 return ioctl(fd, TCXONC, __BIONIC_CAST(static_cast, unsigned long, action)); in tcflow() 99 return ioctl(fd, TCFLSH, __BIONIC_CAST(static_cast, unsigned long, queue)); in tcflush() 112 return ioctl(fd, TCSBRKP, __BIONIC_CAST(static_cast, unsigned long, duration)); in tcsendbreak()
|
D | threads_inlines.h | 129 *__BIONIC_CAST(static_cast, struct __bionic_thrd_data*, __arg); in __bionic_thrd_trampoline() 132 return __BIONIC_CAST(reinterpret_cast, void*, in __bionic_thrd_trampoline() 133 __BIONIC_CAST(static_cast, uintptr_t, __result)); in __bionic_thrd_trampoline() 140 __BIONIC_CAST(static_cast, struct __bionic_thrd_data*, in thrd_create() 164 pthread_exit(__BIONIC_CAST(reinterpret_cast, void*, in thrd_exit() 165 __BIONIC_CAST(static_cast, uintptr_t, __result))); in thrd_exit() 172 *__result = __BIONIC_CAST(reinterpret_cast, intptr_t, __pthread_result); in thrd_join()
|
D | swab.h | 42 const uint8_t* __src = __BIONIC_CAST(static_cast, const uint8_t*, __void_src); in swab() 43 uint8_t* __dst = __BIONIC_CAST(static_cast, uint8_t*, __void_dst); in swab()
|
D | wctype.h | 38 #define WEOF __BIONIC_CAST(static_cast, wint_t, -1)
|
/bionic/libc/private/ |
D | bsd_sys_param.h | 23 #define ALIGN(p) ((__BIONIC_CAST(reinterpret_cast, uintptr_t, p) + ALIGNBYTES) & ~ALIGNBYTES)
|
/bionic/libc/stdio/ |
D | local.h | 170 #define _EXT(fp) __BIONIC_CAST(reinterpret_cast, struct __sfileext*, (fp)->_ext._base) 176 (fp)->_ext._base = __BIONIC_CAST(reinterpret_cast, unsigned char*, fext); \ 239 #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : __BIONIC_CAST(static_cast, int, *(p)->_p++))
|
/bionic/libc/include/netinet/ |
D | in6.h | 59 #define __bionic_s6_addr(a) __BIONIC_CAST(reinterpret_cast, const uint8_t*, a)
|
/bionic/libc/include/bits/fortify/ |
D | poll.h | 40 (fd_count) <= __BIONIC_CAST(static_cast, nfds_t, -1) / sizeof(*fds))
|