From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 586BA3858405 for ; Tue, 16 Nov 2021 00:12:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 586BA3858405 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: +YcdKewgFxWLF2bYvxMQwKa0Pv+NzkRDj3QfCHRFdhjTXiriyuCeAcCjWY65HbvyY82QAidR3o t+C7qJUbgkaR40nOPUGpRX6/OZ8GYPEzAhMEmPuFRuKTLwKTADtvUWXVfMBXbMjB7N9S41Psv+ Pusgxg0NWS2pQ1lb7jB+GngI7qdKrbS3G9C/mzJIyGtnT7n5CXVAD+LPP0fpjSNor4E7PNXpa8 XZR3D/fehczrbmkassXDUbdgbKVrLFAKq3x7DlX/W3CAtDm34XrhLJZscT9MHBSQG592bXLMNQ P7vFS4sJboN/vMlsIKrxntjn X-IronPort-AV: E=Sophos;i="5.87,237,1631606400"; d="scan'208";a="68366039" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 15 Nov 2021 16:12:34 -0800 IronPort-SDR: dhr4agn1vu4nehj0FtW2Uu5rEfc4iMWQh8hm4LCENykJAZWFk/4x1CHS6Tg5UnIunJVipcthdZ IowzNwUtGPWUamr5eWUmiPUKMDOu6fkS3F1WjL4N+Ta/mYDyc4p2iC1FhZgNHPVcge63MZeFjh 0zXrtIPzSrWAFYMIzisTg24nrOdR2l2G1CHyvJ39vieh6xWndnr5ZFx67wTS0HrLPR2+PKQkxX wUQXWefd7cA+96xNEE2Z0TvwfjmiZsJ7Z2JY9ppDL7gVIRuW2RgdtMbCSzNYF888YujUlwLXAV cUg= Date: Tue, 16 Nov 2021 00:12:28 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Sunil Pandey CC: , GNU C Library Subject: Re: [PATCH v2 4/6] x86-64: Add vector log/logf to libmvec microbenchmark In-Reply-To: Message-ID: References: <20211112191800.790574-1-skpgkp2@gmail.com> <20211112191800.790574-5-skpgkp2@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3116.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2021 00:12:35 -0000 On Fri, 12 Nov 2021, Sunil Pandey via Libc-alpha wrote: > Can you please provide some suggestions on input range, if it looks OK or > it should be changed to some specific value to make it fair for different > implementations. > > cos/cosf: Random inputs in [a=-100.00,b=100.00] > sin/sinf: Random inputs in [a=-100.00,b=100.00] My guess is that most inputs are actually in say [-10, 10], but [-100, 100] seems reasonable as limits on what values are benchmarked at all. > exp/expf: Random inputs in [a=-10.00,b=50.00] I suggest a roughly symmetric range (lower limit being a bit above what would cause a subnormal result, upper limit being a bit below what would overflow - note that means different limits for exp and expf). > log/logf: Random inputs in [a=1.10,b=100.00] I suggest a lower limit of 0 and an upper limit of FLT_MAX / DBL_MAX (note this means different limits for log and logf), but with a substantial proportion of inputs being closer to 1 (say in the range [0.01, 100]). > pow/powf: Random inputs in [a=0.01,b=100.00], [c=0.01,d=10.00] I think negative exponents should be included, about as many as positive exponents (similar range, so that results are neither subnormal nor overflowing). -- Joseph S. Myers joseph@codesourcery.com