mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-03 07:07:20 +00:00
24 lines
423 B
C
24 lines
423 B
C
|
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
|
||
|
*
|
||
|
* Permission to use, copy, modify, and distribute this software
|
||
|
* is freely granted, provided that this notice is preserved.
|
||
|
*/
|
||
|
|
||
|
#include "fdlibm.h"
|
||
|
|
||
|
float
|
||
|
_DEFUN (exp2f, (float),
|
||
|
float x)
|
||
|
{
|
||
|
return powf(2.0, x);
|
||
|
}
|
||
|
|
||
|
#ifdef _DOUBLE_IS_32BITS
|
||
|
|
||
|
double exp2 (double x)
|
||
|
{
|
||
|
return (double) exp2f ((float) x);
|
||
|
}
|
||
|
|
||
|
#endif /* _DOUBLE_IS_32BITS */
|