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:
21 files changed, 145 insertions, 0 deletions
diff --git a/mpu/math/tmp/_rename.sh b/mpu/math/tmp/_rename.sh
new file mode 100644
index 0000000..8b2e154
--- /dev/null
+++ b/mpu/math/tmp/_rename.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for file in `find . -name "*_tmp_*.dfn"` ; do
+  newname=`echo "${file}" | sed 's,\(.*\)_tmp_\(.*\),\1_log_\2,'`
+  mv ${file} ${newname}
+done
\ No newline at end of file
diff --git a/mpu/math/tmp/emu00128/ei_tmp_001_emu32lsb.dfn b/mpu/math/tmp/emu00128/ei_tmp_001_emu32lsb.dfn
new file mode 100644
index 0000000..f236d90
--- /dev/null
+++ b/mpu/math/tmp/emu00128/ei_tmp_001_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_001_32LSB
+#define   __REAL_EINTERNAL_TMP_001_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_001_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_001_32LSB */
diff --git a/mpu/math/tmp/emu00128/ei_tmp_001_emu32msb.dfn b/mpu/math/tmp/emu00128/ei_tmp_001_emu32msb.dfn
new file mode 100644
index 0000000..3756833
--- /dev/null
+++ b/mpu/math/tmp/emu00128/ei_tmp_001_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_001_32MSB
+#define   __REAL_EINTERNAL_TMP_001_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_001_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_001_32MSB */
diff --git a/mpu/math/tmp/emu00256/ei_tmp_002_emu32lsb.dfn b/mpu/math/tmp/emu00256/ei_tmp_002_emu32lsb.dfn
new file mode 100644
index 0000000..0e54664
--- /dev/null
+++ b/mpu/math/tmp/emu00256/ei_tmp_002_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_002_32LSB
+#define   __REAL_EINTERNAL_TMP_002_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_002_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_002_32LSB */
diff --git a/mpu/math/tmp/emu00256/ei_tmp_002_emu32msb.dfn b/mpu/math/tmp/emu00256/ei_tmp_002_emu32msb.dfn
new file mode 100644
index 0000000..287b3ac
--- /dev/null
+++ b/mpu/math/tmp/emu00256/ei_tmp_002_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_002_32MSB
+#define   __REAL_EINTERNAL_TMP_002_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_002_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_002_32MSB */
diff --git a/mpu/math/tmp/emu00512/ei_tmp_004_emu32lsb.dfn b/mpu/math/tmp/emu00512/ei_tmp_004_emu32lsb.dfn
new file mode 100644
index 0000000..2028b61
--- /dev/null
+++ b/mpu/math/tmp/emu00512/ei_tmp_004_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_004_32LSB
+#define   __REAL_EINTERNAL_TMP_004_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_004_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_004_32LSB */
diff --git a/mpu/math/tmp/emu00512/ei_tmp_004_emu32msb.dfn b/mpu/math/tmp/emu00512/ei_tmp_004_emu32msb.dfn
new file mode 100644
index 0000000..d3a1fac
--- /dev/null
+++ b/mpu/math/tmp/emu00512/ei_tmp_004_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_004_32MSB
+#define   __REAL_EINTERNAL_TMP_004_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_004_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_004_32MSB */
diff --git a/mpu/math/tmp/emu01024/ei_tmp_008_emu32lsb.dfn b/mpu/math/tmp/emu01024/ei_tmp_008_emu32lsb.dfn
new file mode 100644
index 0000000..8e100b2
--- /dev/null
+++ b/mpu/math/tmp/emu01024/ei_tmp_008_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_008_32LSB
+#define   __REAL_EINTERNAL_TMP_008_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_008_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_008_32LSB */
diff --git a/mpu/math/tmp/emu01024/ei_tmp_008_emu32msb.dfn b/mpu/math/tmp/emu01024/ei_tmp_008_emu32msb.dfn
new file mode 100644
index 0000000..6a692af
--- /dev/null
+++ b/mpu/math/tmp/emu01024/ei_tmp_008_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_008_32MSB
+#define   __REAL_EINTERNAL_TMP_008_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_008_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_008_32MSB */
diff --git a/mpu/math/tmp/emu02048/ei_tmp_016_emu32lsb.dfn b/mpu/math/tmp/emu02048/ei_tmp_016_emu32lsb.dfn
new file mode 100644
index 0000000..779d72c
--- /dev/null
+++ b/mpu/math/tmp/emu02048/ei_tmp_016_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_016_32LSB
+#define   __REAL_EINTERNAL_TMP_016_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_016_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_016_32LSB */
diff --git a/mpu/math/tmp/emu02048/ei_tmp_016_emu32msb.dfn b/mpu/math/tmp/emu02048/ei_tmp_016_emu32msb.dfn
new file mode 100644
index 0000000..809d8c1
--- /dev/null
+++ b/mpu/math/tmp/emu02048/ei_tmp_016_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_016_32MSB
+#define   __REAL_EINTERNAL_TMP_016_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_016_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_016_32MSB */
diff --git a/mpu/math/tmp/emu04096/ei_tmp_032_emu32lsb.dfn b/mpu/math/tmp/emu04096/ei_tmp_032_emu32lsb.dfn
new file mode 100644
index 0000000..fa1f44a
--- /dev/null
+++ b/mpu/math/tmp/emu04096/ei_tmp_032_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_032_32LSB
+#define   __REAL_EINTERNAL_TMP_032_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_032_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_032_32LSB */
diff --git a/mpu/math/tmp/emu04096/ei_tmp_032_emu32msb.dfn b/mpu/math/tmp/emu04096/ei_tmp_032_emu32msb.dfn
new file mode 100644
index 0000000..84e50ad
--- /dev/null
+++ b/mpu/math/tmp/emu04096/ei_tmp_032_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_032_32MSB
+#define   __REAL_EINTERNAL_TMP_032_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_032_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_032_32MSB */
diff --git a/mpu/math/tmp/emu08192/ei_tmp_064_emu32lsb.dfn b/mpu/math/tmp/emu08192/ei_tmp_064_emu32lsb.dfn
new file mode 100644
index 0000000..f491fcb
--- /dev/null
+++ b/mpu/math/tmp/emu08192/ei_tmp_064_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_064_32LSB
+#define   __REAL_EINTERNAL_TMP_064_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_064_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_064_32LSB */
diff --git a/mpu/math/tmp/emu08192/ei_tmp_064_emu32msb.dfn b/mpu/math/tmp/emu08192/ei_tmp_064_emu32msb.dfn
new file mode 100644
index 0000000..a6f4a7e
--- /dev/null
+++ b/mpu/math/tmp/emu08192/ei_tmp_064_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_064_32MSB
+#define   __REAL_EINTERNAL_TMP_064_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_064_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_064_32MSB */
diff --git a/mpu/math/tmp/emu16384/ei_tmp_128_emu32lsb.dfn b/mpu/math/tmp/emu16384/ei_tmp_128_emu32lsb.dfn
new file mode 100644
index 0000000..a5ad9f6
--- /dev/null
+++ b/mpu/math/tmp/emu16384/ei_tmp_128_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_128_32LSB
+#define   __REAL_EINTERNAL_TMP_128_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_128_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_128_32LSB */
diff --git a/mpu/math/tmp/emu16384/ei_tmp_128_emu32msb.dfn b/mpu/math/tmp/emu16384/ei_tmp_128_emu32msb.dfn
new file mode 100644
index 0000000..38ead7f
--- /dev/null
+++ b/mpu/math/tmp/emu16384/ei_tmp_128_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_128_32MSB
+#define   __REAL_EINTERNAL_TMP_128_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_128_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_128_32MSB */
diff --git a/mpu/math/tmp/emu32768/ei_tmp_256_emu32lsb.dfn b/mpu/math/tmp/emu32768/ei_tmp_256_emu32lsb.dfn
new file mode 100644
index 0000000..507b54e
--- /dev/null
+++ b/mpu/math/tmp/emu32768/ei_tmp_256_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_256_32LSB
+#define   __REAL_EINTERNAL_TMP_256_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_256_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_256_32LSB */
diff --git a/mpu/math/tmp/emu32768/ei_tmp_256_emu32msb.dfn b/mpu/math/tmp/emu32768/ei_tmp_256_emu32msb.dfn
new file mode 100644
index 0000000..23c92da
--- /dev/null
+++ b/mpu/math/tmp/emu32768/ei_tmp_256_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_256_32MSB
+#define   __REAL_EINTERNAL_TMP_256_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_256_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_256_32MSB */
diff --git a/mpu/math/tmp/emu65536/ei_tmp_512_emu32lsb.dfn b/mpu/math/tmp/emu65536/ei_tmp_512_emu32lsb.dfn
new file mode 100644
index 0000000..dcabe2e
--- /dev/null
+++ b/mpu/math/tmp/emu65536/ei_tmp_512_emu32lsb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_512_32LSB
+#define   __REAL_EINTERNAL_TMP_512_32LSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_512_emu32lsb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_512_32LSB */
diff --git a/mpu/math/tmp/emu65536/ei_tmp_512_emu32msb.dfn b/mpu/math/tmp/emu65536/ei_tmp_512_emu32msb.dfn
new file mode 100644
index 0000000..ec68984
--- /dev/null
+++ b/mpu/math/tmp/emu65536/ei_tmp_512_emu32msb.dfn
@@ -0,0 +1,12 @@
+
+#ifndef   __REAL_EINTERNAL_TMP_512_32MSB
+#define   __REAL_EINTERNAL_TMP_512_32MSB
+
+#if BITS_PER_EMUSHORT == 32
+
+
+#else  /* BITS_PER_EMUSHORT != 32 */
+#error ei_tmp_512_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
+#endif /* BITS_PER_EMUSHORT == 32 */
+
+#endif /* __REAL_EINTERNAL_TMP_512_32MSB */