Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / libgo / go / math / exp2.go
blob1e67f29ebccb5d522113540a26a18e9c0dedc7f4
1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package math
7 // Exp2 returns 2**x, the base-2 exponential of x.
8 //
9 // Special cases are the same as Exp.
10 func Exp2(x float64) float64 { return Exp(x * Ln2) }