From f13c2a8dff2329c6692a80176262ceaaf8a6f74e Mon Sep 17 00:00:00 2001 From: Leonhard Holz Date: Tue, 12 May 2015 11:37:52 +0200 Subject: Improve strcoll with strdiff. This patch improves strcoll hot case by finding first byte that mismatches. That is in likely case enough to determine comparison result. --- wcsmbs/wcscoll_l.c | 1 + 1 file changed, 1 insertion(+) (limited to 'wcsmbs') diff --git a/wcsmbs/wcscoll_l.c b/wcsmbs/wcscoll_l.c index 106ec93511..9f60cee9ea 100644 --- a/wcsmbs/wcscoll_l.c +++ b/wcsmbs/wcscoll_l.c @@ -23,6 +23,7 @@ #define STRING_TYPE wchar_t #define USTRING_TYPE wint_t #define STRCOLL __wcscoll_l +#define STRDIFF __wcsdiff #define STRCMP wcscmp #define WEIGHT_H "../locale/weightwc.h" #define SUFFIX WC -- cgit 1.4.1