summaryrefslogtreecommitdiff
path: root/sysroot/include/sys/asm/mpu-errno.h
diff options
context:
space:
mode:
authorkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
committerkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
commit065da3509019b15dd0e678072e6be629e5330bef (patch)
tree69c934c9e786ac048b4fbe8f4c4c5571661521f4 /sysroot/include/sys/asm/mpu-errno.h
parentd130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff)
downloadlibmcpu-0.4.0.tar.xz
Version 0.4.00.4.0
Diffstat (limited to 'sysroot/include/sys/asm/mpu-errno.h')
-rw-r--r--sysroot/include/sys/asm/mpu-errno.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/sysroot/include/sys/asm/mpu-errno.h b/sysroot/include/sys/asm/mpu-errno.h
new file mode 100644
index 0000000..3f42751
--- /dev/null
+++ b/sysroot/include/sys/asm/mpu-errno.h
@@ -0,0 +1,42 @@
+
+#ifndef __MCPU_SYS_ASM_MPU_ERRNO_H
+#define __MCPU_SYS_ASM_MPU_ERRNO_H
+
+/*
+ * MPU -- Math Processor Unit error numbers.
+ *
+ * These values describe the error-state registers of the MCPU mathematical
+ * coprocessor and intentionally preserve the LibMPU 1.0.25 names and values.
+ */
+#define __EUNKNOWN__ 0 /* Unknown error type */
+
+/* Integer error types. */
+#define __I_ESIZE__ 1 /* Invalid size of operand(s) */
+#define __I_ESHIFT__ 2 /* Invalid number of shifts */
+#define __I_ENUMBER__ 3 /* Invalid number */
+#define __I_ERADIX__ 4 /* Invalid radix */
+#define __I_MAX_ERRNO 5
+
+/* Real error types. */
+#define __R_ESIZE__ 1 /* Invalid size of operand(s) */
+#define __R_ETRUNC__ 2 /* Invalid number of TRUNC bits */
+#define __R_MAX_ERRNO 3
+
+/* Complex error types. */
+#define __C_EDIVZEROBYZERO__ 1 /* Complex division by zero */
+#define __C_ELOGOFZERO__ 2 /* LOG of zero magnitude */
+#define __C_EPOWOFZERO__ 3 /* POW of zero magnitude */
+#define __C_MAX_ERRNO 4
+
+/* Math error types. */
+#define __DOMAIN__ 1 /* Argument domain error */
+#define __SING__ 2 /* Argument singularity */
+#define __OVERFLOW__ 3 /* Overflow range error */
+#define __UNDERFLOW__ 4 /* Underflow range error */
+#define __TLOSS__ 5 /* Total loss of precision */
+#define __PLOSS__ 6 /* Partial loss of precision */
+#define __INVALID__ 7 /* Invalid operation */
+#define __INEXACT__ 8 /* Inexact result */
+#define __M_MAX_ERRNO 9
+
+#endif /* __MCPU_SYS_ASM_MPU_ERRNO_H */