#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 */