mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Get codebase completely working with LLVM
You can now build Cosmopolitan with Clang: make -j8 MODE=llvm o/llvm/examples/hello.com The assembler and linker code is now friendly to LLVM too. So it's not needed to configure Clang to use binutils under the hood. If you love LLVM then you can now use pure LLVM.
This commit is contained in:
parent
0e36cb3ac4
commit
e75ffde09e
4528 changed files with 7776 additions and 11640 deletions
|
@ -19,13 +19,13 @@
|
|||
#include "libc/macros.h"
|
||||
.source __FILE__
|
||||
|
||||
/ Rounds to integer, toward zero.
|
||||
/
|
||||
/ @param 𝑥 is double scalar in low half of %xmm0
|
||||
/ @return double scalar in low half of %xmm0
|
||||
/ @define trunc(𝑥+copysign(.5,𝑥))
|
||||
/ @see round(),rint(),nearbyint()
|
||||
/ @see roundsd $_MM_FROUND_TO_ZERO|_MM_FROUND_NO_EXC,%xmm0,%xmm0
|
||||
// Rounds to integer, toward zero.
|
||||
//
|
||||
// @param 𝑥 is double scalar in low half of %xmm0
|
||||
// @return double scalar in low half of %xmm0
|
||||
// @define trunc(𝑥+copysign(.5,𝑥))
|
||||
// @see round(),rint(),nearbyint()
|
||||
// @see roundsd $_MM_FROUND_TO_ZERO|_MM_FROUND_NO_EXC,%xmm0,%xmm0
|
||||
trunc: .leafprologue
|
||||
.profilable
|
||||
movsd 3f(%rip),%xmm1
|
||||
|
@ -40,5 +40,5 @@ trunc: .leafprologue
|
|||
.endfn trunc,globl
|
||||
|
||||
.rodata.cst8
|
||||
2: .double 0x0010000000000000
|
||||
2: .quad 0x0010000000000000
|
||||
3: .double nan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue