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/double.h>
9 void fdivd(void *ft, void *fa, void *fb)
19 if (B_c == FP_CLS_ZERO && A_c != FP_CLS_ZERO)
20 FP_SET_EXCEPTION(FP_EX_DIVZERO);
26 __FPU_FPCSR |= FP_CUR_EXCEPTIONS;