<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 14, 2017 at 8:47 PM, Eric Anholt <span dir="ltr"><<a href="mailto:eric@anholt.net" target="_blank">eric@anholt.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I wrote this code with reference to pixman, though I've only decided to<br>
cover Linux (what I'm testing) and Android (seems obvious enough). Linux<br>
has getauxval() as a cleaner interface to the /proc entry, but it's more<br>
glibc-specific and I didn't want to add detection for that.<br>
<br>
This will be used to enable NEON at runtime on ARMv6 builds of vc4.<br>
<br>
v2: Actually initialize the temp vars in the Android path (noticed by<br>
daniels)<br>
v3: Actually pull in the cpufeatures library (change by robher). Use<br>
O_CLOEXEC. Break out of the loop when we find our feature. Only do<br>
NEON detection, until someone actually wants VFP features.<br></blockquote><div><br>Reviewed-by: Grazvydas Ignotas <<a href="mailto:notasas@gmail.com" target="_blank">notasas@gmail.com</a>></div><br></div><br></div></div>