dt-bindings: mtd: ingenic: Use standard ecc-engine property
[linux/fpc-iii.git] / arch / nds32 / math-emu / fsqrtd.c
blobc3a8dbd81d4e6e453832f15edc0fb64e778a949d
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2018 Andes Technology Corporation
4 #include <linux/uaccess.h>
5 #include <asm/sfp-machine.h>
6 #include <math-emu/soft-fp.h>
7 #include <math-emu/double.h>
8 void fsqrtd(void *ft, void *fa)
10 FP_DECL_D(A);
11 FP_DECL_D(R);
12 FP_DECL_EX;
14 FP_UNPACK_DP(A, fa);
16 FP_SQRT_D(R, A);
18 FP_PACK_DP(ft, R);
20 __FPU_FPCSR |= FP_CUR_EXCEPTIONS;