Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / nds32 / math-emu / fsqrts.c
blob4c6f94b273289bd2a82e6cf2ef2258327183f24e
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/single.h>
8 void fsqrts(void *ft, void *fa)
10 FP_DECL_S(A);
11 FP_DECL_S(R);
12 FP_DECL_EX;
14 FP_UNPACK_SP(A, fa);
16 FP_SQRT_S(R, A);
18 FP_PACK_SP(ft, R);
20 __FPU_FPCSR |= FP_CUR_EXCEPTIONS;