summaryrefslogtreecommitdiff
path: root/lib/freebl/gcm-arm32-neon.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug 1608327 - Fix freebl arm NEON code use on tier3 platforms. r=jcjMike Hommey2020-01-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Despite the code having runtime detection of NEON and crypto extensions, the optimized code using those instructions is disabled at build time on platforms where the compiler doesn't enable NEON by default of with the flags it's given for the caller code. In the case of gcm, this goes as far as causing a build error. What is needed is for the optimized code to be enabled in every case, letting the caller code choose whether to use that code based on the existing runtime checks. But this can't be simply done either, because those optimized parts of the code need to be built with NEON enabled, unconditionally, but that is not compatible with platforms using the softfloat ABI. For those, we need to use the softfp ABI, which is compatible. However, the softfp ABI is not compatible with the hardfp ABI, so we also can't unconditionally use the softfp ABI, so we do so only when the compiler targets the softfloat ABI, which confusingly enough is advertized via the `__SOFTFP__` define. Differential Revision: https://phabricator.services.mozilla.com/D59451
* Bug 1562548 - Improve GCM perfomance on aarch32 using NEON. r=kjacobsMakoto Kato2019-12-031-0/+202
Optimize GCM perfomance using https://conradoplg.cryptoland.net/files/2010/12/gcm14.pdf via ARM's NEON. Differential Revision: https://phabricator.services.mozilla.com/D40403