URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
|
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
|
*
|
*
|
* Permission to use, copy, modify, and distribute this software
|
* Permission to use, copy, modify, and distribute this software
|
* is freely granted, provided that this notice is preserved.
|
* is freely granted, provided that this notice is preserved.
|
*/
|
*/
|
|
|
#include "fdlibm.h"
|
#include "fdlibm.h"
|
|
|
float
|
float
|
_DEFUN (exp2f, (float),
|
_DEFUN (exp2f, (float),
|
float x)
|
float x)
|
{
|
{
|
return powf(2.0, x);
|
return powf(2.0, x);
|
}
|
}
|
|
|
#ifdef _DOUBLE_IS_32BITS
|
#ifdef _DOUBLE_IS_32BITS
|
|
|
double exp2 (double x)
|
double exp2 (double x)
|
{
|
{
|
return (double) exp2f ((float) x);
|
return (double) exp2f ((float) x);
|
}
|
}
|
|
|
#endif /* _DOUBLE_IS_32BITS */
|
#endif /* _DOUBLE_IS_32BITS */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.