blob: 4c3a374e02e22f92c9f30cdd53d80abc317b1a97 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/*
2 * Based on code written by J.T. Conklin <jtc@NetBSD.org>.
3 * Public domain.
4 */
5
6#include <machine/asm.h>
7__FBSDID("$FreeBSD: src/lib/msun/i387/s_copysignl.S,v 1.1 2005/04/16 21:12:55 das Exp $")
8
9ENTRY(copysignl)
10 movl 24(%esp),%edx
11 andl $0x8000,%edx
12 movl 12(%esp),%eax
13 andl $0x7fff,%eax
14 orl %edx,%eax
15 movl %eax,12(%esp)
16 fldt 4(%esp)
17 ret