s_copysign.S 459 B

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