s_copysign.S 363 B

123456789101112131415161718192021
  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)