From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25543 invoked by alias); 21 Jun 2018 21:35:37 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 25526 invoked by uid 89); 21 Jun 2018 21:35:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Thu, 21 Jun 2018 21:35:00 -0000 From: Joseph Myers To: "Gabriel F. T. Gomes" CC: Subject: Re: [PATCH 02/14] Prepare vfscanf to use __strtof128_internal In-Reply-To: <20180621021023.17036-3-gabriel@inconstante.eti.br> Message-ID: References: <20180621021023.17036-1-gabriel@inconstante.eti.br> <20180621021023.17036-3-gabriel@inconstante.eti.br> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2018-06/txt/msg00697.txt.bz2 On Wed, 20 Jun 2018, Gabriel F. T. Gomes wrote: > On powerpc64le, long double can currently take two formats: the same as > double (-mlong-double-64) or IBM Extended Precision (default with > -mlong-double-128 or explicitly with -mabi=ibmlongdouble). The internal > implementation of scanf-like functions is aware of these possibilites > and, based on the format in use, properly calls __strtold_internal or > __strtod_internal, saving the return to a variable of type double or > long double. > > When library support for TS 18661-3 was added to glibc, a new function, > __strtof128_internal, was added to enable reading of floating-point > values with IEEE binary128 format into the _Float128 type. Now that > powerpc64le is getting support for its third long double format, and > taking into account that this format is the same as the format of > _Float128, this patch extends __vfscanf_internal and __vfwscanf_internal > to call __strtof128_internal when appropriate. The result gets saved > into a variable of _Float128 type. This patch is OK once Zack's patches are reviewed and checked in. -- Joseph S. Myers joseph@codesourcery.com