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.
18 lines
253 B
C
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;
|