libc/newlib/libm/mathfp/sf_exp2.c
Yaakov Selkowitz 9087163804 ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:26 -06:00

23 lines
398 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
exp2f (float x)
{
return powf(2.0, x);
}
#ifdef _DOUBLE_IS_32BITS
double exp2 (double x)
{
return (double) exp2f ((float) x);
}
#endif /* _DOUBLE_IS_32BITS */