Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags
author: kx <kx@radix-linux.su> 2024-12-20 16:11:07 +0300 committer: kx <kx@radix-linux.su> 2024-12-20 16:11:07 +0300 commit: 868b2b66b564b5c00e3a74d10be45db7151627ac parent: cce2ae8d3312493b7653358bb4af201d3271377b
Commit Summary:
Version 1.0.14
Diffstat:
1 file changed, 57 insertions, 0 deletions
diff --git a/mpu/mpu-m-const.h b/mpu/mpu-m-const.h
new file mode 100644
index 0000000..281e6e4
--- /dev/null
+++ b/mpu/mpu-m-const.h
@@ -0,0 +1,82 @@
+
+/***************************************************************
+  __MPU_M_CONST.H
+
+       This file contains declarations of functions for
+       MATH CONSTANTS operations.
+
+       PART OF : MPU - library .
+
+       USAGE   : Internal only .
+
+       NOTE    : Include "libmpu.h" before this FILE .
+
+       Copyright (C) 2000 - 2024  by Andrew V.Kosteltsev.
+       All Rights Reserved.
+ ***************************************************************/
+
+#ifndef   __MPU_M_CONST_H
+#define   __MPU_M_CONST_H
+
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
+
+extern EMUSHORT *_get_m_pi_ptr          ( int nb );
+extern EMUSHORT *_get_m_e_ptr           ( int nb );
+
+extern EMUSHORT *_get_m_1_ln2_ptr       ( int nb );
+extern EMUSHORT *_get_m_ln2_ptr         ( int nb );
+extern EMUSHORT *_get_m_1_ln10_ptr      ( int nb );
+extern EMUSHORT *_get_m_ln10_ptr        ( int nb );
+extern EMUSHORT *_get_m_1_lg2_ptr       ( int nb );
+extern EMUSHORT *_get_m_lg2_ptr         ( int nb );
+
+extern EMUSHORT *_get_m_pi_2_ptr        ( int nb );
+extern EMUSHORT *_get_m_pi_3_ptr        ( int nb );
+extern EMUSHORT *_get_m_pi_4_ptr        ( int nb );
+extern EMUSHORT *_get_m_pi_5_ptr        ( int nb );
+extern EMUSHORT *_get_m_pi_6_ptr        ( int nb );
+
+extern EMUSHORT *_get_m_1_pi_ptr        ( int nb );
+extern EMUSHORT *_get_m_2_pi_ptr        ( int nb );
+extern EMUSHORT *_get_m_3_pi_ptr        ( int nb );
+extern EMUSHORT *_get_m_4_pi_ptr        ( int nb );
+extern EMUSHORT *_get_m_5_pi_ptr        ( int nb );
+
+extern EMUSHORT *_get_m_2pi_ptr         ( int nb );
+extern EMUSHORT *_get_m_3pi_ptr         ( int nb );
+
+extern EMUSHORT *_get_m_1_2pi_ptr       ( int nb );
+extern EMUSHORT *_get_m_1_3pi_ptr       ( int nb );
+extern EMUSHORT *_get_m_1_4pi_ptr       ( int nb );
+extern EMUSHORT *_get_m_1_5pi_ptr       ( int nb );
+extern EMUSHORT *_get_m_1_6pi_ptr       ( int nb );
+
+extern EMUSHORT *_get_m_3pi_4_ptr       ( int nb );
+
+extern EMUSHORT *_get_m_sqrtpi_ptr      ( int nb );
+extern EMUSHORT *_get_m_1_sqrtpi_ptr    ( int nb );
+extern EMUSHORT *_get_m_2_sqrtpi_ptr    ( int nb );
+
+extern EMUSHORT *_get_m_sqrt2_ptr       ( int nb );
+extern EMUSHORT *_get_m_1_sqrt2_ptr     ( int nb );
+
+extern EMUSHORT *_get_m_sqrt3_ptr       ( int nb );
+extern EMUSHORT *_get_m_1_sqrt3_ptr     ( int nb );
+
+extern EMUSHORT *_get_m_degree_ptr      ( int nb );
+extern EMUSHORT *_get_m_1_degree_ptr    ( int nb );
+
+extern EMUSHORT *_get_m_goldenratio_ptr ( int nb );
+extern EMUSHORT *_get_m_eulergamma_ptr  ( int nb );
+extern EMUSHORT *_get_m_catalan_ptr     ( int nb );
+
+
+
+#ifdef  __cplusplus
+}   /* ... extern "C" */
+#endif
+
+#endif /* __MPU_M_CONST_H */