mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user