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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user