Remove extra space at end of line.
[glibc.git] / sysdeps / riscv / e_sqrtl.c
blob55a875d9fbb32a5391ce2d153980bc6db93ab43e
1 /* long double square root in software floating-point emulation.
2 Copyright (C) 1997-2018 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #include <stdlib.h>
20 #include <soft-fp/soft-fp.h>
21 #include <soft-fp/quad.h>
23 long double
24 __ieee754_sqrtl (const long double a)
26 FP_DECL_EX;
27 FP_DECL_Q (A); FP_DECL_Q (C);
28 long double c;
30 FP_INIT_ROUNDMODE;
31 FP_UNPACK_Q (A, a);
32 FP_SQRT_Q (C, A);
33 FP_PACK_Q (c, C);
34 FP_HANDLE_EXCEPTIONS;
35 return c;
37 strong_alias (__ieee754_sqrtl, __sqrtl_finite)