Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sf_exp2.c « mathfp « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7e147c5eddffa455c59b07e82c1ed8d18503cd73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 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 */