summaryrefslogtreecommitdiff
path: root/tools/generate-version-script.py
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2018-11-28 22:56:58 -0800
committerHaibo Huang <hhb@google.com>2018-11-30 07:56:22 +0000
commit73ad790ebebf595a95d2d846d40671ba702d112e (patch)
tree891999b33045684215acc20d7f2951defcca29f7 /tools/generate-version-script.py
parent6b70fda682419b1cb41b33bfd84c66c037b7390e (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