From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63009 invoked by alias); 9 Nov 2016 22:08:26 -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 62976 invoked by uid 89); 9 Nov 2016 22:08:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=__copysignf128, sk:get_flo, sk:GET_FLO, __isinff128 X-HELO: relay1.mentorg.com Date: Wed, 09 Nov 2016 22:08:00 -0000 From: Joseph Myers To: "Gabriel F. T. Gomes" CC: Subject: Re: [PATCH 7/8] float128: Add private _Float128 declarations for libm. In-Reply-To: <1478716859-3246-8-git-send-email-gftg@linux.vnet.ibm.com> Message-ID: References: <1478716859-3246-1-git-send-email-gftg@linux.vnet.ibm.com> <1478716859-3246-8-git-send-email-gftg@linux.vnet.ibm.com> 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: 2016-11/txt/msg00368.txt.bz2 On Wed, 9 Nov 2016, Gabriel F. T. Gomes wrote: > +/* __builtin_isinf_sign is broken in GCC < 7 for float128. */ > +# include > +extern inline int __isinff128(_Float128 x) > +{ > + int64_t hx,lx; > + GET_FLOAT128_WORDS64 (hx,lx,x); > + lx |= (hx & 0x7fffffffffffffffLL) ^ 0x7fff000000000000LL; > + lx |= -lx; > + return ~(lx >> 63) & (hx >> 62); > +} > +# endif > + > +extern inline _Float128 __copysignf128 (_Float128 x, _Float128 y) > +{ return BUILTIN_COPYSIGNF128 (x, y); } > +extern inline _Float128 fabsf128 (_Float128 x) > +{ return BUILTIN_FABSF128 (x); } > +#endif New code should be formatted in GNU style. -- Joseph S. Myers joseph@codesourcery.com