MCPcopy Create free account
hub / github.com/numpy/numpy / getauxval

Function getauxval

numpy/core/src/common/npy_cpu_features.c:684–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682__attribute__((weak)) int elf_aux_info(int, void *, int); // linker should handle it
683
684static unsigned long getauxval(unsigned long k)
685{
686 unsigned long val = 0ul;
687 if (elf_aux_info == 0 || elf_aux_info((int)k, (void *)&val, (int)sizeof(val)) != 0) {
688 return 0ul;
689 }
690 return val;
691}
692#endif
693static int
694npy__cpu_init_features_linux(void)

Callers 2

npy__cpu_init_featuresFunction · 0.85
npy_cpu_features.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected