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