[PATCH 03/12] Add a generic scalb implementation

Joseph Myers joseph@codesourcery.com
Wed Jun 20 22:24:00 GMT 2018


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

> > just a new w_scalb (with the compat files having all their contents become
> > conditional on LIBM_SVID_COMPAT).
> 
> float, double and long double define __USE_WRAPPER_TEMPLATE as:
> #define __USE_WRAPPER_TEMPLATE !LIBM_SVID_COMPAT
> 
> So, I guess the current code is already covering this part.
> Am I missing something?

At present, w_scalb_compat is used both for shared and static libm, for 
both old and new ports.

The proposed state is it would become more like the other w_*_compat 
files, which only build any code for shared libm for old ports - all the 
code in the files would be conditional on LIBM_SVID_COMPAT, so that static 
libm and new ports would end up using w_scalb instead (as would float128).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list