| 1 | /* |
|---|---|
| 2 | * Public domain. |
| 3 | */ |
| 4 | |
| 5 | #include <libm-alias-ldouble.h> |
| 6 | #include <machine/asm.h> |
| 7 | |
| 8 | RCSID("$NetBSD: $") |
| 9 | |
| 10 | ENTRY(__copysignl) |
| 11 | movl 32(%rsp),%edx |
| 12 | movl 16(%rsp),%eax |
| 13 | andl $0x8000,%edx |
| 14 | andl $0x7fff,%eax |
| 15 | orl %edx,%eax |
| 16 | movl %eax,16(%rsp) |
| 17 | fldt 8(%rsp) |
| 18 | ret |
| 19 | END (__copysignl) |
| 20 | libm_alias_ldouble (__copysign, copysign) |
| 21 |