flyingfish89 opened a new pull request, #7850:
URL: https://github.com/apache/nuttx/pull/7850

   ## Summary
   function:
   scalbnf:get a float number of x*2^n
   The implementation of the function borrows from musl
   ## Impact
   
   ## Testing
   float number1 = scalbnf(2, 10);
   printf("%f\n", number1);
   number1 = scalbnl(3, 100000);
   printf("%f\n", number1);
   number = scalbnl(4, 100);
   printf("%f\n", number1);
   number = scalbnl(5, 1000);
   printf("%f\n", number1);
   number = scalbnl(12, -10000000);
   printf("%f\n", number1);
   number = scalbnl(22, 1090000);
   printf("%f\n", number1);
   number = scalbnl(2075, 10867564);
   printf("%f\n", number1);
   number = scalbnl(265, -108766);
   printf("%f\n", number1);
   number = scalbnl(22, -1320);
   printf("%f\n", number1);
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to