w_exp2.c 610 B

123456789101112131415161718192021222324252627
  1. /* @(#)w_exp2.c 5.1 93/09/24 */
  2. /*
  3. * ====================================================
  4. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  5. *
  6. * Developed at SunPro, a Sun Microsystems, Inc. business.
  7. * Permission to use, copy, modify, and distribute this
  8. * software is freely granted, provided that this notice
  9. * is preserved.
  10. * ====================================================
  11. */
  12. #include "math.h"
  13. #include "math_private.h"
  14. libm_hidden_proto(exp2)
  15. #ifdef __STDC__
  16. double exp2(double x)
  17. #else
  18. double exp2(x)
  19. double x;
  20. #endif
  21. {
  22. return pow(2.0, x);
  23. }
  24. libm_hidden_def(exp2)