[PATCH 09/12] ldbl-128ibm-compat: Provide nexttoward functions

Joseph Myers joseph@codesourcery.com
Thu Jun 21 16:25:00 GMT 2018


On Wed, 20 Jun 2018, Tulio Magno Quites Machado Filho wrote:

> Joseph Myers <joseph@codesourcery.com> writes:
> 
> > On Tue, 19 Jun 2018, Tulio Magno Quites Machado Filho wrote:
> >
> >>   __nexttowardieee128 (as an alias to __nextafterieee128)
> >
> > Is there an advantage to having this alias over having another #define in 
> > math.h like those used for drem and gamma?
> 
> No.  However, changing it breaks math/test-tgmath.c as it defines its own
> nextafterl and nexttowardl in the same compilation unit, causing the assembler
> to fail with:
> /tmp/ccE9ypFK.s: Assembler messages:
> /tmp/ccE9ypFK.s:22067: Error: symbol `__nextafterieee128' is already defined
> 
> Any suggestions on how to proceed?

I suppose in that case adding the alias is reasonable.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list