From: nsz Date: Mon, 8 Aug 2011 16:35:31 +0000 (+0200) Subject: include makefile.conf later, reset_timer in strstr bench X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=08c133e16a05b1e0f2ab34d34d130e209ff42261 include makefile.conf later, reset_timer in strstr bench --- diff --git a/Makefile.inc b/Makefile.inc index f163fda..ae2fa3f 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -14,7 +14,6 @@ usemusl = yes prefix = /usr/local/musl includedir = $(prefix)/include libdir = $(prefix)/lib --include $(ROOTDIR)/Makefile.conf AR=ar RANLIB=ranlib @@ -23,6 +22,8 @@ CFLAGS += -g -D_POSIX_C_SOURCE=200809L -std=c99 -pipe -Wall LDFLAGS += -g -lpthread -lrt -lm INC += -I$(ROOTDIR)/common +-include $(ROOTDIR)/Makefile.conf + ifeq ($(usemusl), yes) CC=gcc LIBCC=$(shell gcc -print-file-name=libgcc.a |sed 's,/libgcc.a,,') diff --git a/src/string/bench.c b/src/string/bench.c index fcfc1e9..9f0a7f5 100644 --- a/src/string/bench.c +++ b/src/string/bench.c @@ -17,6 +17,7 @@ static int bstrstr(int N, const char *needle) { haystack[l*i+l-1] ^= 1; } memcpy(haystack + l*i, needle, l+1); + reset_timer(); for (i=0; i