diff options
Diffstat (limited to 'benchtests/bench-strncmp.c')
-rw-r--r-- | benchtests/bench-strncmp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/benchtests/bench-strncmp.c b/benchtests/bench-strncmp.c index 92cf0d2145..65ebb3445d 100644 --- a/benchtests/bench-strncmp.c +++ b/benchtests/bench-strncmp.c @@ -26,14 +26,9 @@ #include "json-lib.h" #ifdef WIDE -# include <wchar.h> - # define L(str) L##str -# define STRNCMP wcsncmp # define SIMPLE_STRNCMP simple_wcsncmp # define STUPID_STRNCMP stupid_wcsncmp -# define CHAR wchar_t -# define CHARBYTES 4 /* Wcsncmp uses signed semantics for comparison, not unsigned. Avoid using substraction since possible overflow. */ @@ -73,11 +68,8 @@ stupid_wcsncmp (const CHAR *s1, const CHAR *s2, size_t n) #else # define L(str) str -# define STRNCMP strncmp # define SIMPLE_STRNCMP simple_strncmp # define STUPID_STRNCMP stupid_strncmp -# define CHAR char -# define CHARBYTES 1 /* Strncmp uses unsigned semantics for comparison. */ int |