Skip to content

Commit

Permalink
Update Sources/Real/ScalarConformances.swift
Browse files Browse the repository at this point in the history
Co-Authored-By: Xiaodi Wu <xiaodi.wu@gmail.com>
  • Loading branch information
stephentyrone and xwu authored Nov 11, 2019
1 parent 3fbc22c commit 5d783ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Real/ScalarConformances.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ extension Float80: Real {
// where we can fallback on cbrt.
if n == 3 { return libm_cbrtl(x) }
// TODO: this implementation is not quite correct, because either n or
// 1/n may be not be representable as Double.
// 1/n may be not be representable as Float80.
return Float80(signOf: x, magnitudeOf: libm_powl(x.magnitude, 1/Float80(n)))
}

Expand Down

0 comments on commit 5d783ce

Please sign in to comment.