xref: /netbsd-src/lib/libc/arch/arm/hardfloat/fabs_ieee754.S (revision efed6ce3cb762324d2f484a39cfe81acd51544a9)
1*efed6ce3Sjoerg/*-
2*efed6ce3Sjoerg * Copyright (c) 2013 The NetBSD Foundation, Inc.
3*efed6ce3Sjoerg * All rights reserved.
4*efed6ce3Sjoerg *
5*efed6ce3Sjoerg * This code is derived from software contributed to The NetBSD Foundation
6*efed6ce3Sjoerg * by Matt Thomas of 3am Software Foundry.
7*efed6ce3Sjoerg *
8*efed6ce3Sjoerg * Redistribution and use in source and binary forms, with or without
9*efed6ce3Sjoerg * modification, are permitted provided that the following conditions
10*efed6ce3Sjoerg * are met:
11*efed6ce3Sjoerg * 1. Redistributions of source code must retain the above copyright
12*efed6ce3Sjoerg *    notice, this list of conditions and the following disclaimer.
13*efed6ce3Sjoerg * 2. Redistributions in binary form must reproduce the above copyright
14*efed6ce3Sjoerg *    notice, this list of conditions and the following disclaimer in the
15*efed6ce3Sjoerg *    documentation and/or other materials provided with the distribution.
16*efed6ce3Sjoerg *
17*efed6ce3Sjoerg * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18*efed6ce3Sjoerg * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19*efed6ce3Sjoerg * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20*efed6ce3Sjoerg * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21*efed6ce3Sjoerg * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22*efed6ce3Sjoerg * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23*efed6ce3Sjoerg * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24*efed6ce3Sjoerg * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25*efed6ce3Sjoerg * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26*efed6ce3Sjoerg * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27*efed6ce3Sjoerg * POSSIBILITY OF SUCH DAMAGE.
28*efed6ce3Sjoerg */
29*efed6ce3Sjoerg
30*efed6ce3Sjoerg#include <arm/asm.h>
31*efed6ce3Sjoerg
32*efed6ce3SjoergRCSID("$NetBSD: fabs_ieee754.S,v 1.1 2014/01/17 22:19:46 joerg Exp $")
33*efed6ce3Sjoerg
34*efed6ce3Sjoerg	.fpu	vfp
35*efed6ce3Sjoerg
36*efed6ce3SjoergENTRY(fabsl)
37*efed6ce3SjoergENTRY(fabs)
38*efed6ce3Sjoerg	vabs.f64	d0, d0
39*efed6ce3Sjoerg	RET
40*efed6ce3SjoergEND(fabs)
41