Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6b464294c36a15e10cff61ac6250ef2b0b4736e0
Ticket: 474335ffffffffffffffffffffffffffffffffff
logic of matherr is backwards
User & Date: davygrvy on 2002-05-28 11:04:49
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    There are 2 mentions of it in include/math.h:
    
    struct  _exception
    {
        int type;
        char   _FAR *name;
        double  arg1, arg2, retval;
    };
    
    struct  _exceptionl
    {
        int type;
        char   _FAR *name;
        long double  arg1, arg2, retval;
    };
    
    typedef enum
    {
        DOMAIN = 1,    /* argument domain error -- log (-1)        */
        SING,          /* argument singularity  -- pow (0,-2))     */
        OVERFLOW,      /* overflow range error  -- exp (1000)      */
        UNDERFLOW,     /* underflow range error -- exp (-1000)     
    */
        TLOSS,         /* total loss of significance -- sin(10e70) */
        PLOSS,         /* partial loss of signif. -- not used      */
        STACKFAULT     /* floating point unit stack overflow       */
    }   _mexcep;
    
    int         _RTLENTRY          _matherr(struct _exception  *__e);
    int         _RTLENTRY          _matherrl(struct _exceptionl 
    *__e);
    
    I don't know what to say beyond the existence of it.  I don't 
    have any documentation on Borland's RT to contribute any 
    useful concerns.  fastmath.h says the following, though:
    
    /*
       fastmath.h - header file for the FastMath routines.  These 
    are high
                    performance math routines that don't bother 
    checking for
                    most error conditions and never call matherr.  
    They are
                    coded for maximum speed and most are written in 
    assembly.
    
                    These functions are never exported from the 
    RTLDLL, which
                    means that they always get linked directly into the 
    PE file
                    which is being created.
    
    */
    
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"