This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] simple speedup in decode_reg_name
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: apinski at apple dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 Aug 2004 00:53:56 -0400 (EDT)
- Subject: Re: [PATCH] simple speedup in decode_reg_name
- References: <63200C1E-F197-11D8-950D-00039351ED8A@apple.com>
> - if (asmspec != 0)
> + if (asmspec != 0 && strlen (asmspec) != 0)
When looking for a zero length string, wouldn't (*asmspec != '\0') be
even faster than calling strlen?
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu