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, 32 insertions, 0 deletions
diff --git a/mpu/mpu-mtherr.h b/mpu/mpu-mtherr.h
new file mode 100644
index 0000000..b7487c0
--- /dev/null
+++ b/mpu/mpu-mtherr.h
@@ -0,0 +1,45 @@
+
+/***************************************************************
+  __MPU_MTHERR.H
+
+       This file contains MATH ERROR operation
+       functions & data declarations.
+
+       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_MTHERR_H
+#define   __MPU_MTHERR_H
+
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
+extern void __integer_invalid_size   ( __mpu_char8_t *name );
+extern void __integer_invalid_shift  ( __mpu_char8_t *name );
+extern void __integer_invalid_number ( __mpu_char8_t *name );
+extern void __integer_invalid_radix  ( __mpu_char8_t *name );
+extern void __real_invalid_size      ( __mpu_char8_t *name );
+extern void __real_truncate_error    ( void );
+
+extern void _mtherr ( EMUSHORT      *rc,
+                      __mpu_char8_t *name,
+                      int            type,
+                      EMUSHORT      *ret_val,
+                      EMUSHORT      *arg1,
+                      EMUSHORT      *arg2,
+                      int            nb );
+
+
+#ifdef  __cplusplus
+}   /* ... extern "C" */
+#endif
+
+#endif /* __MPU_MTHERR_H */