util: add auxv based PowerPC AltiVec/VSX detection
authorDaniel Kolesa <daniel@octaforge.org>
Tue, 27 Aug 2019 19:47:48 +0000 (21:47 +0200)
committerMatt Turner <mattst88@gmail.com>
Tue, 27 Aug 2019 21:55:37 +0000 (14:55 -0700)
commit1b9fce56c4f28a092dd1cd6a1dbe8921c442824e
tree115f74d2b6509e4903d25706bea48bed94a1017c
parent23f42f8dcfe7ca275ff3cbb5586b5a07ce8df778
util: add auxv based PowerPC AltiVec/VSX detection

At least on Linux, we can use the ELF auxiliary vector to
detect the presence of AltiVec, VSX and other CPU features
without having to go through handling SIGILL, which has
various problems of its own.

A similar thing is already being done for ARM to detect NEON.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
src/util/u_cpu_detect.c