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 102... |
Line 102... |
if(y>=1.0) {
|
if(y>=1.0) {
|
if(y>1.0) {
|
if(y>1.0) {
|
/* atanh(|x|>1) */
|
/* atanh(|x|>1) */
|
exc.type = DOMAIN;
|
exc.type = DOMAIN;
|
exc.name = "atanh";
|
exc.name = "atanh";
|
|
exc.err = 0;
|
|
exc.arg1 = exc.arg2 = x;
|
exc.retval = 0.0/0.0;
|
exc.retval = 0.0/0.0;
|
if (_LIB_VERSION == _POSIX_)
|
if (_LIB_VERSION == _POSIX_)
|
errno = EDOM;
|
errno = EDOM;
|
else if (!matherr(&exc)) {
|
else if (!matherr(&exc)) {
|
errno = EDOM;
|
errno = EDOM;
|
}
|
}
|
} else {
|
} else {
|
/* atanh(|x|=1) */
|
/* atanh(|x|=1) */
|
exc.type = SING;
|
exc.type = SING;
|
exc.name = "atanh";
|
exc.name = "atanh";
|
|
exc.err = 0;
|
|
exc.arg1 = exc.arg2 = x;
|
exc.retval = x/0.0; /* sign(x)*inf */
|
exc.retval = x/0.0; /* sign(x)*inf */
|
if (_LIB_VERSION == _POSIX_)
|
if (_LIB_VERSION == _POSIX_)
|
errno = EDOM;
|
errno = EDOM;
|
else if (!matherr(&exc)) {
|
else if (!matherr(&exc)) {
|
errno = EDOM;
|
errno = EDOM;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.