[ARITH] Avoid imaxdiv when only one of the results is wanted
commitb5bda1d94f7a62d88c6a257a283426c16906c8cb
authorHarald van Dijk <harald@gigawatt.nl>
Wed, 17 Aug 2011 01:28:24 +0000 (17 09:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 17 Aug 2011 01:28:24 +0000 (17 09:28 +0800)
tree06613b5c3f6061702960e49dada94be9436241fc
parent2b18a37786a45cd97a9b0481b49949210d22fc4a
[ARITH] Avoid imaxdiv when only one of the results is wanted

dash rather pointlessly calls imaxdiv, only to discard one of its
results. The call was already made conditional a while back because some
systems don't have imaxdiv, but the generated code for the version with
imaxdiv and the one with / and % is identical (with GCC 4.6.1 or ICC
12.0.2, with -O0, -O2 or -Os), so it could just as well go entirely to
clean up the code a little bit.

Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
ChangeLog
configure.ac
src/arith_yacc.c