(x)memcoll: speedup when input is known to be NUL delimited
authorChen Guo <chenguo4@yahoo.com>
Thu, 8 Jul 2010 22:50:11 +0000 (15:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 8 Jul 2010 22:50:11 +0000 (15:50 -0700)
commit9f31a7914f9d65fbc1225f503491dcc90e90c357
treee5166d4f43ee68147ade3035bf95eb5accc4d9bf
parent4e559a98f6969a994791ea916306b50ed1a25b8d
(x)memcoll: speedup when input is known to be NUL delimited

* lib/memcoll.c: Include stdlib.
(memcoll0) New function.
(strcoll_loop) New function, refactored for use in both memcoll
and memcoll0.
* lib/memcoll.h: Add prototype for memcoll0.
* lib/xmemcoll.c: (xmemcoll0) New function.
(collate_error) New function, refactored for use in both xmemcoll
and xmemcoll0.
* lib/xmemcoll.h: Add prototype for xmemcoll0.
* m4/memcoll.m4: add inline invocation.
ChangeLog
lib/memcoll.c
lib/memcoll.h
lib/xmemcoll.c
lib/xmemcoll.h
m4/memcoll.m4