aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/mathfp/s_exp2.c
blob: 3bcf7ca2caa697b6468cb97a0e6b3a68a5a7d31c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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"

#ifndef _DOUBLE_IS_32BITS

double
_DEFUN (exp2, (double),
        double x)
{
  return pow(2.0, x);
}

#endif /* _DOUBLE_IS_32BITS */