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

@@ -467,7 +467,7 @@ func ${op} (lhs: ${Self}, rhs: ${Self}) -> ${Self} {
// 1) This is consistent with '%' in C#, D, Java, and JavaScript
// 2) C99 requires this behavior for fmod*()
// 3) C++11 requires this behavior for std::fmod*()
@asmname("fmod${cFuncSuffix(bits)}")public
@asmname("_swift_fmod${cFuncSuffix(bits)}") public
func % (lhs: ${Self}, rhs: ${Self}) -> ${Self}
// See Bool.swift for && and ||