]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
benchtests: ffs and ffsll are string functions, not math
authorSiddhesh Poyarekar <sid@reserved-bit.com>
Tue, 8 Dec 2015 18:45:14 +0000 (00:15 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 8 Dec 2015 18:45:15 +0000 (00:15 +0530)
The ffs and ffsll functions were listed as math functions when they
are actually defined in strings.h and string.h respectively.  Shuffle
around the Makefile variables a bit and make a separate space for ffs
and ffsll.

ChangeLog
benchtests/Makefile

index 335572d4dfae2cf2fc0aebe2a047e6c076dd74c9..3205cee423d8c0a676eb03b21ace6e5049c26fd1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
 
+       * benchtests/Makefile (bench-math): Move ffs and ffsll...
+       (bench-string): ... here.
+       (bench): Add bench-string.
+       (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
+       to *-benchset to reflect what they are.
+       (benchset): Adjust.
+
        * benchtests/sincos-inputs: Add inputs from sin-inputs and
        cos-inputs.
 
index 20558df52f6ddfb231f97077fea9a9c0326bb2f3..d6f0b159b10a71abc6cd7391fa5b8ff82bdfb27c 100644 (file)
 subdir := benchtests
 
 include ../Makeconfig
-bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 ffs ffsll \
-             log log2 modf pow rint sin sincos sinh sqrt tan tanh
+bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \
+             modf pow rint sin sincos sinh sqrt tan tanh
 
 bench-pthread := pthread_once
 
-bench := $(bench-math) $(bench-pthread)
+bench-string := ffs ffsll
+
+bench := $(bench-math) $(bench-pthread) $(bench-string)
 
 # String function benchmarks.
-string-bench := bcopy bzero memccpy memchr memcmp memcpy memmem memmove \
-               mempcpy memset rawmemchr stpcpy stpncpy strcasecmp strcasestr \
-               strcat strchr strchrnul strcmp strcpy strcspn strlen \
-               strncasecmp strncat strncmp strncpy strnlen strpbrk strrchr \
-               strspn strstr strcpy_chk stpcpy_chk memrchr strsep strtok \
-               strcoll
-wcsmbs-bench := wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat \
-               wcscmp wcsncmp wcschr wcschrnul wcsrchr wcsspn wcspbrk wcscspn \
-               wmemchr wmemset wmemcmp
-string-bench-all := $(string-bench) ${wcsmbs-bench}
+string-benchset := bcopy bzero memccpy memchr memcmp memcpy memmem memmove \
+                  mempcpy memset rawmemchr stpcpy stpncpy strcasecmp strcasestr \
+                  strcat strchr strchrnul strcmp strcpy strcspn strlen \
+                  strncasecmp strncat strncmp strncpy strnlen strpbrk strrchr \
+                  strspn strstr strcpy_chk stpcpy_chk memrchr strsep strtok \
+                  strcoll
+wcsmbs-benchset := wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat \
+                  wcscmp wcsncmp wcschr wcschrnul wcsrchr wcsspn wcspbrk wcscspn \
+                  wmemchr wmemset wmemcmp
+string-benchset-all := $(string-benchset) ${wcsmbs-benchset}
 
 # We have to generate locales
 LOCALES := en_US.UTF-8 tr_TR.UTF-8 cs_CZ.UTF-8 fa_IR.UTF-8 fr_FR.UTF-8 \
@@ -49,13 +51,13 @@ LOCALES := en_US.UTF-8 tr_TR.UTF-8 cs_CZ.UTF-8 fa_IR.UTF-8 fr_FR.UTF-8 \
           hu_HU.UTF-8 it_IT.UTF-8 sr_RS.UTF-8 zh_CN.UTF-8
 include ../gen-locales.mk
 
-stdlib-bench := strtod
+stdlib-benchset := strtod
 
-stdio-common-bench := sprintf
+stdio-common-benchset := sprintf
 
 math-benchset := math-inlines
 
-benchset := $(string-bench-all) $(stdlib-bench) $(stdio-common-bench) \
+benchset := $(string-benchset-all) $(stdlib-benchset) $(stdio-common-benchset) \
            $(math-benchset)
 
 CFLAGS-bench-ffs.c += -fno-builtin