Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / nds32 / math-emu / fs2d.c
blob0e8db90356313e00be91a0318ff1a98f8b2289c2
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/double.h>
7 #include <math-emu/single.h>
8 #include <math-emu/soft-fp.h>
10 void fs2d(void *ft, void *fa)
12 FP_DECL_S(A);
13 FP_DECL_D(R);
14 FP_DECL_EX;
16 FP_UNPACK_SP(A, fa);
18 FP_CONV(D, S, 2, 1, R, A);
20 FP_PACK_DP(ft, R);
22 __FPU_FPCSR |= FP_CUR_EXCEPTIONS;