mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +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
|
@ -1,16 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_TINYMATH_HORNERF_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_TINYMATH_HORNERF_INTERNAL_H_
|
||||
#include "third_party/libcxx/math.h"
|
||||
#include "libc/math.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
/*
|
||||
* Helper macros for double-precision Horner polynomial evaluation.
|
||||
*
|
||||
* Copyright (c) 2022-2023, Arm Limited.
|
||||
* SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
|
||||
*/
|
||||
|
||||
#if WANT_VMATH
|
||||
#define FMA(x, y, z) vfmaq_f32(z, x, y)
|
||||
#else
|
||||
|
@ -18,6 +11,7 @@ COSMOPOLITAN_C_START_
|
|||
#endif
|
||||
|
||||
#include "libc/tinymath/horner_wrap.internal.h"
|
||||
#include "third_party/libcxx/math.h"
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue