Fix fmod() covers. Add CGFloat to the math.h tests.

<rdar://problem/17275152> Can't call C fmodf() from stdlib


Swift SVN r19777
This commit is contained in:
Greg Parker
2014-07-10 03:54:27 +00:00
parent b56c3a84d3
commit bde0d301fc
5 changed files with 280 additions and 131 deletions

View File

@@ -479,7 +479,10 @@ func pow(lhs: CGFloat, rhs: CGFloat) -> CGFloat {
return CGFloat(pow(lhs.native, rhs.native))
}
// FIXME: fmod
@transparent public
func fmod(lhs: CGFloat, rhs: CGFloat) -> CGFloat {
return CGFloat(fmod(lhs.native, rhs.native))
}
@transparent public
func remainder(lhs: CGFloat, rhs: CGFloat) -> CGFloat {