mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 17:30:27 +00:00
Make more code aarch64 friendly
This commit is contained in:
parent
ca2860947f
commit
2b73e72d59
568 changed files with 2197 additions and 1061 deletions
17
libc/tinymath/horner.internal.h
Normal file
17
libc/tinymath/horner.internal.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_TINYMATH_HORNER_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_TINYMATH_HORNER_INTERNAL_H_
|
||||
#include "libc/math.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#if WANT_VMATH
|
||||
#define FMA(x, y, z) vfmaq_f64(z, x, y)
|
||||
#else
|
||||
#define FMA fma
|
||||
#endif
|
||||
|
||||
#include "libc/tinymath/horner_wrap.internal.h"
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_TINYMATH_HORNER_INTERNAL_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue