aboutsummaryrefslogtreecommitdiff
path: root/keymaps/onekey/f411_qfplib/qfplib/qfplib.h
diff options
context:
space:
mode:
Diffstat (limited to 'keymaps/onekey/f411_qfplib/qfplib/qfplib.h')
-rw-r--r--keymaps/onekey/f411_qfplib/qfplib/qfplib.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/keymaps/onekey/f411_qfplib/qfplib/qfplib.h b/keymaps/onekey/f411_qfplib/qfplib/qfplib.h
new file mode 100644
index 0000000..d172da8
--- /dev/null
+++ b/keymaps/onekey/f411_qfplib/qfplib/qfplib.h
@@ -0,0 +1,26 @@
+// Copyright 2015 Mark Owen ([email protected])
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+extern float qfp_fadd(float x, float y);
+extern float qfp_fsub(float x, float y);
+extern float qfp_fmul(float x, float y);
+extern float qfp_fdiv(float x, float y);
+extern float qfp_fdiv_fast(float x, float y);
+extern int qfp_float2int(float x);
+extern int qfp_float2fix(float x, int y);
+extern unsigned int qfp_float2uint(float x);
+extern unsigned int qfp_float2ufix(float x, int y);
+extern float qfp_int2float(int x);
+extern float qfp_fix2float(int x, int y);
+extern float qfp_uint2float(unsigned int x);
+extern float qfp_ufix2float(unsigned int x, int y);
+extern int qfp_fcmp(float x, float y);
+extern float qfp_fcos(float x);
+extern float qfp_fsin(float x);
+extern float qfp_ftan(float x);
+extern float qfp_fatan2(float y, float x);
+extern float qfp_fexp(float x);
+extern float qfp_fln(float x);
+extern float qfp_fsqrt(float x);
+extern float qfp_fsqrt_fast(float x);