musl/src/internal/libc.c
Rich Felker 12e9b4faf6 i386 vsyscall support (vdso-provided sysenter/syscall instruction based)
this doubles the performance of the fastest syscalls on the atom I
tested it on; improvement is reportedly much more dramatic on
worst-case cpus. cannot be used for cancellable syscalls.
2012-10-11 22:47:07 -04:00

18 lines
253 B
C

#include "libc.h"
#ifdef USE_LIBC_ACCESSOR
struct __libc *__libc_loc()
{
static struct __libc __libc;
return &__libc;
}
#else
struct __libc __libc;
#endif
#ifdef BROKEN_VISIBILITY
__asm__(".hidden __libc");
#endif
size_t __hwcap;
size_t __sysinfo;