URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
/*
|
/*
|
* __isinff(x) returns 1 if x is +-infinity, else 0;
|
* __isinff(x) returns 1 if x is +-infinity, else 0;
|
* Added by Cygnus Support.
|
* Added by Cygnus Support.
|
*/
|
*/
|
|
|
#include "fdlibm.h"
|
#include "fdlibm.h"
|
|
|
int
|
int
|
_DEFUN (__isinff, (x),
|
_DEFUN (__isinff, (x),
|
float x)
|
float x)
|
{
|
{
|
__int32_t ix;
|
__int32_t ix;
|
GET_FLOAT_WORD(ix,x);
|
GET_FLOAT_WORD(ix,x);
|
ix &= 0x7fffffff;
|
ix &= 0x7fffffff;
|
return FLT_UWORD_IS_INFINITE(ix);
|
return FLT_UWORD_IS_INFINITE(ix);
|
}
|
}
|
|
|
#ifdef _DOUBLE_IS_32BITS
|
#ifdef _DOUBLE_IS_32BITS
|
|
|
int
|
int
|
_DEFUN (__isinfd, (x),
|
_DEFUN (__isinfd, (x),
|
double x)
|
double x)
|
{
|
{
|
return __isinff((float) x);
|
return __isinff((float) x);
|
}
|
}
|
|
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.