mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Make quality improvements
- Write some more unit tests - memcpy() on ARM is now faster - Address the Musl complex math FIXME comments - Some libm funcs like pow() now support setting errno - Import the latest and greatest math functions from ARM - Use more accurate atan2f() and log1pf() implementations - atoi() and atol() will no longer saturate or clobber errno
This commit is contained in:
parent
af8f2bd19f
commit
592f6ebc20
122 changed files with 6305 additions and 3859 deletions
|
@ -28,7 +28,11 @@
|
|||
#include "libc/math.h"
|
||||
__static_yoink("musl_libc_notice");
|
||||
|
||||
|
||||
/**
|
||||
* Returns euclidean distance.
|
||||
*
|
||||
* Max observed error is 1 ulp.
|
||||
*/
|
||||
float hypotf(float x, float y)
|
||||
{
|
||||
union {float f; uint32_t i;} ux = {x}, uy = {y}, ut;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue