source: trunk/libs/newlib/src/newlib/libm/mathfp/sf_exp2.c @ 577

Last change on this file since 577 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 398 bytes
Line 
1/* Copyright (C) 2002 by  Red Hat, Incorporated. All rights reserved.
2 *
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6
7#include "fdlibm.h"
8
9float
10exp2f (float x)
11{
12  return powf(2.0, x);
13}
14
15#ifdef _DOUBLE_IS_32BITS
16
17double exp2 (double x)
18{
19  return (double) exp2f ((float) x);
20}
21
22#endif /* _DOUBLE_IS_32BITS */
Note: See TracBrowser for help on using the repository browser.