Use an explicit table for tolower() to avoid a function call
commitac8f8fcb27a063fbf7ec3ad3de18f6586e9e95b8
authorH. Peter Anvin <hpa@zytor.com>
Wed, 11 Jun 2008 22:49:41 +0000 (11 15:49 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 11 Jun 2008 22:49:41 +0000 (11 15:49 -0700)
treed4315e0d8a8c6d27d0883aa67461251ce4bbc59e
parent7b471fada8697930e4bdaff50fe51caa2798815f
Use an explicit table for tolower() to avoid a function call

On some platforms, tolower() is implemented as a function call, in
order to handle locale support.  We never change locales, so can the
result of tolower() into a table, so we don't have to sit through the
function call every time.

~1.3% overall performance improvement on a macro-heavy benchmark under
Linux x86-64.
crc64.c
nasm.c
nasmlib.c
nasmlib.h
ndisasm.c
preproc.c
stdscan.c