linaro-pkg team mailing list archive
-
linaro-pkg team
-
Mailing list archive
-
Message #00250
[Bug 911860] Re: android neon detection busticated
Just a quick comment based on what I see in http://bazaar.launchpad.net
/~ubuntu-branches/ubuntu/precise/libjpeg-
turbo/precise/view/3/simd/jsimd_arm.c:
Yes, the current code looks a bit dodgy... you'll need to open
/proc/self/auxv instead of trying to find the auxv data by scanning from
envp.
Except in native assembler programs which do not use a C library,
there's no guarantee that the auxv data will be present at the end of
the environment since the C library may have overwritten or moved the
initial environment block since the process started. AFAIK, libc
doesn't provide any API for getting at the auxv data, so reading
/proc/self/auxv or /proc/cpuinfo is the only option (and /proc/self/auxv
has a more fixed, easier-to-parse format)
--
You received this bug notification because you are a member of Linaro
Maintainers, which is the registrant for libjpeg-turbo.
https://bugs.launchpad.net/bugs/911860
Title:
android neon detection busticated
Status in An optimized libjpeg replacement:
Triaged
Bug description:
hwcap.h and link.h appears to be both missing from Android ICS.
The old NEON detection is fragile.
We need a newer and more reliable method of detecting if NEON is
available for use on Android.
To manage notifications about this bug go to:
https://bugs.launchpad.net/libjpeg-turbo/+bug/911860/+subscriptions
References