From patchwork Tue Nov 11 21:03:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 409663 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B2C1414012C for ; Wed, 12 Nov 2014 08:03:22 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=LJv gt1fKasC0Nk7errX+ZjNZ0wxg90zKLbqx/KjeYgNPdz701ndE7ZOuYYvqGrMRzz/ 1/fCJLnkAuN7czLdh2WSubxKGcSZ3wAN9rJYenCw0d/q941emhoh9zxGCrTdP+7g oGaro+PN6LWZFHcz3ai5Y34h2GJgd+Bw5bxA5mzo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=ioRVbgqYM TdQp/p2FCb/B1xgX5A=; b=jkvNVpvkw4n6nLY5HWThBn+HFTYHmgupwEirVnlke oNNY7JWXsMw5KlRjg8BE+PRNmXe6uFy+yj9cq6A7BNgNgTue95cYpVx5pLE1z2iO UQZQPp9tqI0+k83Wem0q7ghST45cZcPyCAnpT/n7ckB+e0utNOQHDte2F2t05EpJ 8o= Received: (qmail 11758 invoked by alias); 11 Nov 2014 21:03:17 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 11748 invoked by uid 89); 11 Nov 2014 21:03:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp03.br.ibm.com Message-ID: <54627989.1090109@linux.vnet.ibm.com> Date: Tue, 11 Nov 2014 19:03:05 -0200 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [PATCH 1/3] benchtests: fmod benchmark X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14111121-0009-0000-0000-00000242CFD1 This patch add a fmod benchmark with finite-only inputs. Tested on powerpc64 and powerpc32. --- * benchtests/Makefile [bench-math]: Add fmod benchmark. * benchtests/fmod-inputs: New file: fmod input file. --- diff --git a/benchtests/Makefile b/benchtests/Makefile index 78fd48f..e030fd0 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -23,7 +23,7 @@ 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 + fmod log log2 modf pow rint sin sincos sinh sqrt tan tanh bench-pthread := pthread_once diff --git a/benchtests/fmod-inputs b/benchtests/fmod-inputs new file mode 100644 index 0000000..36b264b --- /dev/null +++ b/benchtests/fmod-inputs @@ -0,0 +1,5 @@ +## includes: math.h +## args: double:double +0.0, 3.0 +6.5, 2.25 +0x0.fffffep-126L, 0x1p-149