From: Wolfgang Denk Date: Mon, 17 Oct 2011 22:17:35 +0200 Subject: [U-Boot] [PATCH v5 04/13] Add isblank In-Reply-To: <1314805054-16250-5-git-send-email-jason.hobbs@calxeda.com> References: <1314805054-16250-1-git-send-email-jason.hobbs@calxeda.com> <1314805054-16250-5-git-send-email-jason.hobbs@calxeda.com> Message-ID: <20111017201735.E301A140797D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear "Jason Hobbs", In message <1314805054-16250-5-git-send-email-jason.hobbs@calxeda.com> you wrote: > Existing ctype checks are implemented using a 256 byte lookup table, > allowing each character to be in any of 8 character classes. Since there > are 8 existing character classes without the blank class, I implemented > isblank without using the lookup table. Since there are only two blank > characters - tab and space - this is a more reasonable approach than > doubling the size of the lookup table to accommodate one more class. > > Signed-off-by: Jason Hobbs > --- > new in v4 > > changes in v5: > - none > > include/linux/ctype.h | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Comparing information and knowledge is like asking whether the fatness of a pig is more or less green than the designated hitter rule." - David Guaspari