[PATCH 20/25] math: Use tgamma from CORE-MATH

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Sep 15 20:19:11 GMT 2025



On 10/09/25 19:14, DJ Delorie wrote:
> Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
>> -  gamma_productF \
> 
> Like lgamma, __gamma_product is missing from libm.a

They are not required anymore since they were only used in the replaced
implementation.

> 
>> +static inline double
>> +splt (double x, double *xl)
>> +{
>> +  static const double off = 0x1.8p27;
>> +  double xh = (x + off) - off;
>> +  *xl = x - xh;
>> +  return xh;
>> +}
> 
> These could really use comments ;-)

Ack, I will add Paul's comment.

> 
>>  }
>>  libm_alias_finite (__ieee754_gamma_r, __gamma_r)
>> +
>> +    double as_logd (double x, double *l)
>> +{
> 
> Unneeded indent?
> 

Ack.


More information about the Libc-alpha mailing list