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

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