summaryrefslogtreecommitdiff
path: root/numpy/array_api/_statistical_functions.py
diff options
context:
space:
mode:
authorpkubaj <pkubaj@FreeBSD.org>2022-12-12 15:32:37 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-12-30 17:17:14 +0100
commitb748b846800270949c187a5f462d776648d7ab09 (patch)
treed710d26904a8df740e5c3c88b50f0750a3b124a4 /numpy/array_api/_statistical_functions.py
parenta24ddad5d1d43ec9bea474abf8068ee6b8db01db (diff)
downloadnumpy-b748b846800270949c187a5f462d776648d7ab09.tar.gz
ENH: Detect CPU features on FreeBSD/powerpc64*
1. FreeBSD uses elf_aux_info() instead of getauxval. 2. Switch to using compiler macros for detecting POWER platform FreeBSD sets the machine name (what uname -m prints) on all powerpc* to just powerpc. To identify actual architecture, uname -p should be used, but this is not present in uname() function. Thus, the only way to correctly detect platform is to use what uname prints and also check compiler defines.
Diffstat (limited to 'numpy/array_api/_statistical_functions.py')
0 files changed, 0 insertions, 0 deletions