arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / nds32 / math-emu / fnegs.c
blob07270b326a7777613b887dd0c47d0625404fa6b0
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/soft-fp.h>
7 #include <math-emu/single.h>
8 void fnegs(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_NEG_S(R, A);
18 FP_PACK_SP(ft, R);
20 __FPU_FPCSR |= FP_CUR_EXCEPTIONS;