Home
last modified time | relevance | path

Searched refs:__BIONIC_CAST (Results 1 – 18 of 18) sorted by relevance

/bionic/libc/include/
Ddlfcn.h135 #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)
Dctype.h88 return (__BIONIC_CAST(static_cast, unsigned, __ch) < ' ') || __ch == 0x7f; in iscntrl()
170 return __BIONIC_CAST(static_cast, unsigned, __ch) < 0x80; in isascii()
Dassert.h49 #define __assert_no_op __BIONIC_CAST(static_cast, void, 0)
Dsemaphore.h46 #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0)
Dlocale.h107 #define LC_GLOBAL_LOCALE __BIONIC_CAST(reinterpret_cast, locale_t, -1L)
Dsignal.h49 #define SIG_HOLD __BIONIC_CAST(reinterpret_cast, sighandler_t, 2)
/bionic/libc/include/sys/
Dendian.h48 #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)))
Dcdefs.h58 #define __BIONIC_CAST(_k,_t,_v) (_k<_t>(_v)) macro
60 #define __BIONIC_CAST(_k,_t,_v) ((_t) (_v)) macro
Dmman.h43 #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
Dselect.h63 #define __FDS_BITS(type,set) (__BIONIC_CAST(static_cast, type, set)->fds_bits)
/bionic/libc/include/bits/
Dtermios_inlines.h49 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()
Dthreads_inlines.h129 *__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()
Dswab.h42 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()
Dwctype.h38 #define WEOF __BIONIC_CAST(static_cast, wint_t, -1)
/bionic/libc/private/
Dbsd_sys_param.h23 #define ALIGN(p) ((__BIONIC_CAST(reinterpret_cast, uintptr_t, p) + ALIGNBYTES) & ~ALIGNBYTES)
/bionic/libc/stdio/
Dlocal.h170 #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/
Din6.h59 #define __bionic_s6_addr(a) __BIONIC_CAST(reinterpret_cast, const uint8_t*, a)
/bionic/libc/include/bits/fortify/
Dpoll.h40 (fd_count) <= __BIONIC_CAST(static_cast, nfds_t, -1) / sizeof(*fds))