]> sourceware.org Git - newlib-cygwin.git/commit
[ARM] Refactor strlen.c #if nesting.
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Mon, 9 Nov 2015 15:01:31 +0000 (15:01 +0000)
committerMarcus Shawcroft <marcus.shawcroft@arm.com>
Fri, 13 Nov 2015 11:51:31 +0000 (11:51 +0000)
commit52f58640969a522df9c3cbc3ab061f4b95502ecd
tree2f7496f1c03f85ab6b01077644ae5bbe26ebca77
parent995a130bd993f20178dc23c286292cb51648f7df
[ARM] Refactor strlen.c #if nesting.

This patch flattens the condition code selection used in strlen in an
attempt to make the guarding condition for each alternative
implementation clearer and to structure the logic in a manner that
makes it easier to maintain complementary logic between the
alternative 'C' and assembler implementations.

Tested by building newlib and comparing libc.a binaries before and
after for all permutations of:

  Architectures:
    armv4 armv4t armv5 armv5t armv5te armv6 armv6j armv6k
    armv6z armv6kz armv6t2 armv6-m armv6s-m armv7 armv7-a
    armv7ve armv7-r armv7-m armv7e-m armv8-a iwmmxt iwmmxt2

  ISAs:
    thumb arm

  Optimization Levels:
    Os O2

  Excluding:
    armv6s-m -mthumb
    armv6-m -mthumb

    armv6zk -mthumb
    armv6z -mthumb
    armv6k -mthumb
    armv6j -mthumb
newlib/ChangeLog
newlib/libc/machine/arm/strlen.c
This page took 0.032265 seconds and 5 git commands to generate.