aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/vec-fft/cvt16.h
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/vec-fft/cvt16.h')
-rw-r--r--benchmarks/vec-fft/cvt16.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmarks/vec-fft/cvt16.h b/benchmarks/vec-fft/cvt16.h
new file mode 100644
index 0000000..d716d05
--- /dev/null
+++ b/benchmarks/vec-fft/cvt16.h
@@ -0,0 +1,17 @@
+#ifndef _CVT16_H
+#define _CVT16_H
+
+#include <stdint.h>
+
+extern uint_fast32_t cvt_hs(uint_fast16_t);
+extern uint_fast16_t cvt_sh(uint_fast32_t, int);
+
+enum riscv_rm {
+ RNE = 0, /* Round to nearest; ties to even */
+ RTZ = 1, /* Round towards zero (truncate) */
+ RDN = 2, /* Round towards negative infinity (down) */
+ RUP = 3, /* Round towards positive infinity (up) */
+ RMM = 4, /* Round to nearest; ties to max magnitude */
+};
+
+#endif