diff options
author | Haibo Huang <hhb@google.com> | 2018-11-28 22:56:58 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2018-11-30 07:56:22 +0000 |
commit | 73ad790ebebf595a95d2d846d40671ba702d112e (patch) | |
tree | 891999b33045684215acc20d7f2951defcca29f7 /tools/generate-version-script.py | |
parent | 6b70fda682419b1cb41b33bfd84c66c037b7390e (diff) |
[ifunc] Use c implementation to compare cpu variant names
Did this for fun but turns out it generates better assembly code.
With a C implementation, compiler can expand both the comparison
loop and cpu_variant_names array. Results in a decision tree like
structure. For example the "cortex-a" prefix common in many variants
will only be compared once.
Test: run bionic unit tests.
Test: use debugger to check which variant is used.
Change-Id: Id70e5536f968161f20b18f35d46430457c338f0f
Diffstat (limited to 'tools/generate-version-script.py')
0 files changed, 0 insertions, 0 deletions