1// SPDX-License-Identifier: GPL-2.0 2// Copyright (C) 2005-2018 Andes Technology Corporation 3#include <linux/uaccess.h> 4 5#include <asm/sfp-machine.h> 6#include <math-emu/soft-fp.h> 7#include <math-emu/double.h> 8void fnegd(void *ft, void *fa) 9{ 10 FP_DECL_D(A); 11 FP_DECL_D(R); 12 FP_DECL_EX; 13 14 FP_UNPACK_DP(A, fa); 15 16 FP_NEG_D(R, A); 17 18 FP_PACK_DP(ft, R); 19 20 __FPU_FPCSR |= FP_CUR_EXCEPTIONS; 21} 22