OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [newlib/] [newlib/] [newlib/] [libm/] [math/] [wf_fmod.c] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 36... Line 36...
        if(_LIB_VERSION == _IEEE_ ||isnanf(y)||isnanf(x)) return z;
        if(_LIB_VERSION == _IEEE_ ||isnanf(y)||isnanf(x)) return z;
        if(y==(float)0.0) {
        if(y==(float)0.0) {
            /* fmodf(x,0) */
            /* fmodf(x,0) */
            exc.type = DOMAIN;
            exc.type = DOMAIN;
            exc.name = "fmodf";
            exc.name = "fmodf";
 
            exc.err = 0;
 
            exc.arg1 = (double)x;
 
            exc.arg2 = (double)y;
            if (_LIB_VERSION == _SVID_)
            if (_LIB_VERSION == _SVID_)
               exc.retval = x;
               exc.retval = x;
            else
            else
               exc.retval = 0.0/0.0;
               exc.retval = 0.0/0.0;
            if (_LIB_VERSION == _POSIX_)
            if (_LIB_VERSION == _POSIX_)

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.