From patchwork Fri May 20 21:37:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. Murphy" X-Patchwork-Id: 12429 Received: (qmail 115705 invoked by alias); 20 May 2016 21:37:49 -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 115538 invoked by uid 89); 20 May 2016 21:37:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: e36.co.us.ibm.com X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: murphyp@linux.vnet.ibm.com X-IBM-RcptTo: libc-alpha@sourceware.org From: "Paul E. Murphy" To: libc-alpha@sourceware.org Subject: [PATCHv2 10/14] Add note about nexttoward test cases in libm-test.inc Date: Fri, 20 May 2016 16:37:19 -0500 Message-Id: <439d259329baf002fe902500c3cf80aa67f5512e.1463779745.git.murphyp@linux.vnet.ibm.com> In-Reply-To: References: In-Reply-To: References: X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16052021-0021-0000-0000-000051FDFBA1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused The second argument always takes a long double. Leave a note here in case someone attempts a global update similar to the previous commit. * math/libm-test.inc (nexttoward_test_data): Add comment about long double second argument. --- math/libm-test.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/math/libm-test.inc b/math/libm-test.inc index 6c85b40..3ba0b2d 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -9995,6 +9995,8 @@ static const struct test_ff_f_data_nexttoward nexttoward_test_data[] = TEST_ff_f (nexttoward, -min_subnorm_value, 0, minus_zero, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ERRNO_ERANGE), TEST_ff_f (nexttoward, -min_subnorm_value, minus_zero, minus_zero, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ERRNO_ERANGE), + /* Note, FUNC(nexttoward) always takes a long double as a second argument. It is also not included as part of + of TS 18661-3. */ #if TEST_COND_binary32 TEST_ff_f (nexttoward, 1.0, 1.1L, 0x1.000002p0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), TEST_ff_f (nexttoward, 1.0, LDBL_MAX, 0x1.000002p0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),