Add runtime detection of POWER8 and POWER9
authorAnton Blanchard <anton@ozlabs.org>
Sat, 7 Jul 2018 00:49:59 +0000 (10:49 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 20 Aug 2018 08:16:34 +0000 (18:16 +1000)
commit8e1796b91a1893609b8e2f5813d08f7df3f011cf
tree2d8ff470341ab5c5c89152527d0851c6e86d091a
parentc0215fc149478963405e5359457f2f1759046f67
Add runtime detection of POWER8 and POWER9

Use getauxval() to determine if we are on POWER8 or POWER9 or newer.
POWER8 is represented by version 2.07 and POWER9 by version 3.00.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
src/libFLAC/cpu.c
src/libFLAC/include/private/cpu.h