1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef HEXAGON_FMA_EMU_H
19#define HEXAGON_FMA_EMU_H
20
21static inline bool is_finite(float64 x)
22{
23 return !float64_is_any_nan(x) && !float64_is_infinity(x);
24}
25
26int32_t float64_getexp(float64 f64);
27static inline uint32_t float32_getexp_raw(float32 f32)
28{
29 return extract32(f32, 23, 8);
30}
31int32_t float32_getexp(float32 f32);
32float32 infinite_float32(uint8_t sign);
33float32 internal_fmafx(float32 a, float32 b, float32 c,
34 int scale, float_status *fp_status);
35float32 internal_mpyf(float32 a, float32 b, float_status *fp_status);
36float64 internal_mpyhh(float64 a, float64 b,
37 unsigned long long int accumulated,
38 float_status *fp_status);
39
40#endif
41