zouboan opened a new pull request #5307:
URL: https://github.com/apache/incubator-nuttx/pull/5307


   ## Summary
   there's lack a fabsf for x in 
   float frexpf(float x, int *exponent)
   {
     *exponent = (int)ceilf(log2f(x));
     return x / ldexpf(1.0F, *exponent);
   }
   ## Impact
   when input x<0,the result of
   frexpf(x, e) is wrong
   ## Testing
   tested on stm32f405RGT6,after the patch:
   input  number = -60; 
   float sig = frexpf(number, &e);
   sig = -0.9375
   e = 6;
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to