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