mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
1ac832509f
The Andes FPU coprocessor does not support denormalized number handling. According to the specification, FPU generates a denorm input exception that requires the kernel to deal with this instrution operation when it encounters denormalized operands. Hence an nds32 FPU ISA emulator in the kernel is required to meet requirement. Signed-off-by: Vincent Chen <vincentc@andestech.com> Signed-off-by: Nickhu <nickhu@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
33 lines
880 B
C
33 lines
880 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2005-2018 Andes Technology Corporation */
|
|
|
|
#ifndef __ARCH_NDS32_FPUEMU_H
|
|
#define __ARCH_NDS32_FPUEMU_H
|
|
|
|
/*
|
|
* single precision
|
|
*/
|
|
|
|
void fadds(void *ft, void *fa, void *fb);
|
|
void fsubs(void *ft, void *fa, void *fb);
|
|
void fmuls(void *ft, void *fa, void *fb);
|
|
void fdivs(void *ft, void *fa, void *fb);
|
|
void fs2d(void *ft, void *fa);
|
|
void fsqrts(void *ft, void *fa);
|
|
void fnegs(void *ft, void *fa);
|
|
int fcmps(void *ft, void *fa, void *fb, int cop);
|
|
|
|
/*
|
|
* double precision
|
|
*/
|
|
void faddd(void *ft, void *fa, void *fb);
|
|
void fsubd(void *ft, void *fa, void *fb);
|
|
void fmuld(void *ft, void *fa, void *fb);
|
|
void fdivd(void *ft, void *fa, void *fb);
|
|
void fsqrtd(void *ft, void *fa);
|
|
void fd2s(void *ft, void *fa);
|
|
void fnegd(void *ft, void *fa);
|
|
int fcmpd(void *ft, void *fa, void *fb, int cop);
|
|
|
|
#endif /* __ARCH_NDS32_FPUEMU_H */
|