1/* 2 * Written by: 3 * J.T. Conklin (jtc@netbsd.org) 4 * Public domain. 5 */ 6 7#include <amd64/bsd_asm.h> 8//__FBSDID("$FreeBSD: src/lib/msun/amd64/s_logbl.S,v 1.4 2011/01/07 16:13:12 kib Exp $") 9 10ENTRY(logbl) 11#ifndef _WIN64 12 fldt 8(%rsp) 13#else 14 fldt (%rdx) 15#endif 16 fxtract 17 fstp %st 18#ifdef _WIN64 19 mov %rcx,%rax 20 movq $0x0,0x8(%rcx) 21 fstpt (%rcx) 22#endif 23 ret 24 25 26/* Enable stack protection */ 27#if defined(__ELF__) 28.section .note.GNU-stack,"",%progbits 29#endif 30