s_copysignf.S 534 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Written by J.T. Conklin <[email protected]>.
  3. * Public domain.
  4. */
  5. #include <i387/bsd_asm.h>
  6. //__FBSDID("$FreeBSD: src/lib/msun/i387/s_copysignf.S,v 1.3 2011/01/07 16:13:12 kib Exp $");
  7. /* RCSID("$NetBSD: s_copysignf.S,v 1.3 1995/05/08 23:53:25 jtc Exp $") */
  8. ENTRY(copysignf)
  9. movl 8(%esp),%edx
  10. andl $0x80000000,%edx
  11. movl 4(%esp),%eax
  12. andl $0x7fffffff,%eax
  13. orl %edx,%eax
  14. movl %eax,4(%esp)
  15. flds 4(%esp)
  16. ret
  17. END(copysignf)
  18. /* Enable stack protection */
  19. #if defined(__ELF__)
  20. .section .note.GNU-stack,"",%progbits
  21. #endif