commit high-performance mm (scalar and vector versions)
[riscv-tests.git] / benchmarks / vec-fft / cvt16.h
1 #ifndef _CVT16_H
2 #define _CVT16_H
3
4 #include <stdint.h>
5
6 extern uint_fast32_t cvt_hs(uint_fast16_t);
7 extern uint_fast16_t cvt_sh(uint_fast32_t, int);
8
9 enum riscv_rm {
10 RNE = 0, /* Round to nearest; ties to even */
11 RTZ = 1, /* Round towards zero (truncate) */
12 RDN = 2, /* Round towards negative infinity (down) */
13 RUP = 3, /* Round towards positive infinity (up) */
14 RMM = 4, /* Round to nearest; ties to max magnitude */
15 };
16
17 #endif