treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / nds32 / math-emu / fd2s.c
blob1328371e8170827b95bb8828ac93f2630d617656
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2018 Andes Technology Corporation
3 #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>
9 void fd2s(void *ft, void *fa)
11 FP_DECL_D(A);
12 FP_DECL_S(R);
13 FP_DECL_EX;
15 FP_UNPACK_DP(A, fa);
17 FP_CONV(S, D, 1, 2, R, A);
19 FP_PACK_SP(ft, R);
21 __FPU_FPCSR |= FP_CUR_EXCEPTIONS;