w_exp2.c 586 B

1234567891011121314151617181920212223242526
  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. #ifdef __STDC__
  15. double exp2(double x)
  16. #else
  17. double exp2(x)
  18. double x;
  19. #endif
  20. {
  21. return pow(2.0, x);
  22. }
  23. libm_hidden_def(exp2)