Current Path : /usr/src/contrib/compiler-rt/lib/x86_64/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/contrib/compiler-rt/lib/x86_64/floatundisf.S |
// This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. #include "../assembly.h" // float __floatundisf(du_int a); #ifdef __x86_64__ #ifndef __ELF__ .literal4 #endif two: .single 2.0 #define REL_ADDR(_a) (_a)(%rip) .text .align 4 DEFINE_COMPILERRT_FUNCTION(__floatundisf) movq $1, %rsi testq %rdi, %rdi js 1f cvtsi2ssq %rdi, %xmm0 ret 1: andq %rdi, %rsi shrq %rdi orq %rsi, %rdi cvtsi2ssq %rdi, %xmm0 mulss REL_ADDR(two), %xmm0 ret #endif // __x86_64__