1*0a6a1f1dSLionel Sambuc/* $NetBSD: s_copysign.S,v 1.7 2014/11/15 21:07:01 joerg Exp $ */ 284d9c625SLionel Sambuc 384d9c625SLionel Sambuc/*- 484d9c625SLionel Sambuc * Copyright (c) 1996 The NetBSD Foundation, Inc. 584d9c625SLionel Sambuc * All rights reserved. 684d9c625SLionel Sambuc * 784d9c625SLionel Sambuc * This code is derived from software contributed to The NetBSD Foundation 884d9c625SLionel Sambuc * by J.T. Conklin. 984d9c625SLionel Sambuc * 1084d9c625SLionel Sambuc * Redistribution and use in source and binary forms, with or without 1184d9c625SLionel Sambuc * modification, are permitted provided that the following conditions 1284d9c625SLionel Sambuc * are met: 1384d9c625SLionel Sambuc * 1. Redistributions of source code must retain the above copyright 1484d9c625SLionel Sambuc * notice, this list of conditions and the following disclaimer. 1584d9c625SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright 1684d9c625SLionel Sambuc * notice, this list of conditions and the following disclaimer in the 1784d9c625SLionel Sambuc * documentation and/or other materials provided with the distribution. 1884d9c625SLionel Sambuc * 1984d9c625SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2084d9c625SLionel Sambuc * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2184d9c625SLionel Sambuc * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2284d9c625SLionel Sambuc * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2384d9c625SLionel Sambuc * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2484d9c625SLionel Sambuc * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2584d9c625SLionel Sambuc * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2684d9c625SLionel Sambuc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2784d9c625SLionel Sambuc * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2884d9c625SLionel Sambuc * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2984d9c625SLionel Sambuc * POSSIBILITY OF SUCH DAMAGE. 3084d9c625SLionel Sambuc */ 3184d9c625SLionel Sambuc 3284d9c625SLionel Sambuc#include <machine/asm.h> 3384d9c625SLionel Sambuc 34*0a6a1f1dSLionel SambucSTRONG_ALIAS(_copysignl, copysign) 35*0a6a1f1dSLionel SambucWEAK_ALIAS(copysignl, _copysignl) 36*0a6a1f1dSLionel Sambuc 3784d9c625SLionel SambucLEAF(copysign, 2) 3884d9c625SLionel Sambuc cpys fa1, fa0, fv0 3984d9c625SLionel Sambuc RET 4084d9c625SLionel SambucEND(copysign) 41