/* $OpenBSD: s_copysign.S,v 1.4 2011/07/09 18:00:53 martynas Exp $ */ /* * Written by J.T. Conklin . * Public domain. */ #include .Lpos: .quad 0x8000000000000000 .Lneg: .quad 0x7fffffffffffffff ENTRY(copysign) movq .Lpos(%rip),%xmm2 movq .Lneg(%rip),%xmm3 pand %xmm2,%xmm1 pand %xmm3,%xmm0 por %xmm1,%xmm0 ret