diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-04-02 10:36:01 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-04-02 17:45:45 +0530 |
commit | 81f311c2eed308c938f995dbda97d2ec4d00b723 (patch) | |
tree | cd40b56931a84b605563c001a9e4a8b4822390b6 /benchtests/slowpow.c | |
parent | ab0f1aa99467436c38c1a3a419200f8e07cd12a5 (diff) | |
download | glibc-81f311c2eed308c938f995dbda97d2ec4d00b723.zip glibc-81f311c2eed308c938f995dbda97d2ec4d00b723.tar.gz glibc-81f311c2eed308c938f995dbda97d2ec4d00b723.tar.bz2 |
Add benchmark tests for slowpow and slowexp
Separate benchmarks for the fast and slow implementations of pow and
exp since measuring both together doesn't make sense. Adjust the
iterations for pow and exp accordingly so that they run long enough
for the measurements to be meaningful.
Diffstat (limited to 'benchtests/slowpow.c')
-rw-r--r-- | benchtests/slowpow.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/benchtests/slowpow.c b/benchtests/slowpow.c new file mode 100644 index 0000000..08f436d --- /dev/null +++ b/benchtests/slowpow.c @@ -0,0 +1,19 @@ +/* Define slowpow. + Copyright (C) 2013 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#define slowpow pow |