This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [MSP430] Fix device name symbol defined for MSP430i series of devices


Jozef Lawrynowicz <jozef.l@mittosystems.com> writes:
> -      for (i = start_upper; i < strlen (mcu_name); i++)
> +      for (i = start_upper; i < strlen (mcu_name) - 2; i++)

Might be faster to test mcu_name[i] instead of calling strlen repeatedly
too, but this only runs once per invocation ;-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]