Meta: Add OpenLibm

This commit is contained in:
Alec Murphy
2025-04-04 18:16:29 -04:00
parent 4a72f35e9b
commit 172b4ce7a3
724 changed files with 51312 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/*
* Written by:
* J.T. Conklin (jtc@netbsd.org)
* Public domain.
*/
#include <amd64/bsd_asm.h>
ENTRY(rintl)
#ifndef _WIN64
fldt 8(%rsp)
frndint
#else
fldt (%rdx)
frndint
mov %rcx,%rax
movq $0x0,0x8(%rcx)
fstpt (%rcx)
#endif
ret
/* Enable stack protection */
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif