Files
qemu/include/sfu.h
2025-06-16 10:14:53 +08:00

24 lines
546 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 文件路径qemu/include/mycpp.h
#ifdef __cplusplus
extern "C" {
#endif
#define SFU_NV 16
#define SFU_DZ 8
#define SFU_OF 4
#define SFU_UF 2
#define SFU_NX 1
typedef struct sfu_output{
float sfu_data_output;
float sfu_err_output;
int sfu_exception_output;
long int sfu_booth_output;
} sfu_output;
sfu_output sfu_exp2(uint32_t a);
sfu_output sfu_rcp(uint32_t a);
sfu_output sfu_sigmoid(uint32_t a);
sfu_output sfu_tanh(uint32_t a);
#ifdef __cplusplus
}
#endif