Sounds like HWCAP should be checked at runtime for these features and then have 
a fallback to software one.
This might mean using function pointers and initializing the correct ones.  Or 
better yet use ifunc directly to check on them.

Thanks,
Andrew

From: linaro-toolchain [mailto:linaro-toolchain-boun...@lists.linaro.org] On 
Behalf Of Bill Fischofer
Sent: Tuesday, November 17, 2015 2:08 PM
To: Linaro Toolchain Mailman List <linaro-toolchain@lists.linaro.org>
Cc: Barry Spinney <spin...@ezchip.com>
Subject: Configuration question

Hi,

This question has arisen in the ODP project and the thought is that a 'best 
practices' answer would be more likely to be found on this list.

We have a component that wants to make use of specialized instructions for 
performing CRC and/or AES computations and was wondering what is the 
recommended way for an application to determine whether such instructions are 
available in the toolchain and whether the user has overruled their use?

Thanks for any insight you can provide.

Bill
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to