lib/util/charset Make fast path from UTF16 to '8 bit' charsets clearer
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 Apr 2011 00:50:06 +0000 (10:50 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Apr 2011 01:24:06 +0000 (03:24 +0200)
commitd17f4352fe2493be433a21e2f47453968aafdc4d
treec30bf8163f5f5bfc3d2da2a4d0f1c4f6d48a72aa
parenteee1ff2fb56f46fb3c6aa7dfe51583e3b489fb5d
lib/util/charset Make fast path from UTF16 to '8 bit' charsets clearer

This breaks the fast path into handling for -1 and handling for
specified lenghts, avoding branch operations on each character.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
lib/util/charset/convert_string.c