URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 39 |
Rev 56 |
Line 82... |
Line 82... |
if(_LIB_VERSION == _IEEE_ ||isnan(y)||isnan(x)) return z;
|
if(_LIB_VERSION == _IEEE_ ||isnan(y)||isnan(x)) return z;
|
if(y==0.0) {
|
if(y==0.0) {
|
/* fmod(x,0) */
|
/* fmod(x,0) */
|
exc.type = DOMAIN;
|
exc.type = DOMAIN;
|
exc.name = "fmod";
|
exc.name = "fmod";
|
|
exc.arg1 = x;
|
|
exc.arg2 = y;
|
|
exc.err = 0;
|
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_)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.