mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: underscore-prefix MaxBuiltinIntegerType and MaxBuiltinFloatType
Swift SVN r20388
This commit is contained in:
@@ -969,9 +969,9 @@ ERROR(no_CharacterLiteralType_found,sema_tce,none,
|
|||||||
ERROR(no_StringLiteralType_found,sema_tce,none,
|
ERROR(no_StringLiteralType_found,sema_tce,none,
|
||||||
"standard library error: StringLiteralType not defined", ())
|
"standard library error: StringLiteralType not defined", ())
|
||||||
ERROR(no_MaxBuiltinIntegerType_found,sema_tce,none,
|
ERROR(no_MaxBuiltinIntegerType_found,sema_tce,none,
|
||||||
"standard library error: MaxBuiltinIntegerType is not properly defined", ())
|
"standard library error: _MaxBuiltinIntegerType is not properly defined", ())
|
||||||
ERROR(no_MaxBuiltinFloatType_found,sema_tce,none,
|
ERROR(no_MaxBuiltinFloatType_found,sema_tce,none,
|
||||||
"standard library error: MaxBuiltinFloatType is not properly defined", ())
|
"standard library error: _MaxBuiltinFloatType is not properly defined", ())
|
||||||
|
|
||||||
ERROR(no_member_of_module,sema_tce,none,
|
ERROR(no_member_of_module,sema_tce,none,
|
||||||
"module %0 has no member named %1", (Identifier, DeclName))
|
"module %0 has no member named %1", (Identifier, DeclName))
|
||||||
|
|||||||
@@ -59,14 +59,14 @@ IDENTIFIER_WITH_NAME(EqualsOperator, "==")
|
|||||||
IDENTIFIER_WITH_NAME(NotEqualsOperator, "!=")
|
IDENTIFIER_WITH_NAME(NotEqualsOperator, "!=")
|
||||||
|
|
||||||
// Built-in identifiers
|
// Built-in identifiers
|
||||||
IDENTIFIER(MaxBuiltinIntegerType)
|
IDENTIFIER_WITH_NAME(MaxBuiltinIntegerType, "_MaxBuiltinIntegerType")
|
||||||
IDENTIFIER(IntegerLiteralType)
|
IDENTIFIER(IntegerLiteralType)
|
||||||
IDENTIFIER_WITH_NAME(BoolValue, "boolValue")
|
IDENTIFIER_WITH_NAME(BoolValue, "boolValue")
|
||||||
IDENTIFIER_WITH_NAME(ConvertFromNilLiteral, "convertFromNilLiteral")
|
IDENTIFIER_WITH_NAME(ConvertFromNilLiteral, "convertFromNilLiteral")
|
||||||
IDENTIFIER_WITH_NAME(ConvertFromIntegerLiteral, "convertFromIntegerLiteral")
|
IDENTIFIER_WITH_NAME(ConvertFromIntegerLiteral, "convertFromIntegerLiteral")
|
||||||
IDENTIFIER_WITH_NAME(ConvertFromBuiltinIntegerLiteral,
|
IDENTIFIER_WITH_NAME(ConvertFromBuiltinIntegerLiteral,
|
||||||
"_convertFromBuiltinIntegerLiteral")
|
"_convertFromBuiltinIntegerLiteral")
|
||||||
IDENTIFIER(MaxBuiltinFloatType)
|
IDENTIFIER_WITH_NAME(MaxBuiltinFloatType, "_MaxBuiltinFloatType")
|
||||||
IDENTIFIER(FloatLiteralType)
|
IDENTIFIER(FloatLiteralType)
|
||||||
IDENTIFIER_WITH_NAME(ConvertFromFloatLiteral, "convertFromFloatLiteral")
|
IDENTIFIER_WITH_NAME(ConvertFromFloatLiteral, "convertFromFloatLiteral")
|
||||||
IDENTIFIER_WITH_NAME(ConvertFromBuiltinFloatLiteral,
|
IDENTIFIER_WITH_NAME(ConvertFromBuiltinFloatLiteral,
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ public protocol NilLiteralConvertible {
|
|||||||
|
|
||||||
public protocol _BuiltinIntegerLiteralConvertible {
|
public protocol _BuiltinIntegerLiteralConvertible {
|
||||||
class func _convertFromBuiltinIntegerLiteral(
|
class func _convertFromBuiltinIntegerLiteral(
|
||||||
value: MaxBuiltinIntegerType) -> Self
|
value: _MaxBuiltinIntegerType) -> Self
|
||||||
}
|
}
|
||||||
|
|
||||||
public protocol IntegerLiteralConvertible {
|
public protocol IntegerLiteralConvertible {
|
||||||
@@ -188,7 +188,7 @@ public protocol IntegerLiteralConvertible {
|
|||||||
|
|
||||||
public protocol _BuiltinFloatLiteralConvertible {
|
public protocol _BuiltinFloatLiteralConvertible {
|
||||||
class func _convertFromBuiltinFloatLiteral(
|
class func _convertFromBuiltinFloatLiteral(
|
||||||
value: MaxBuiltinFloatType) -> Self
|
value: _MaxBuiltinFloatType) -> Self
|
||||||
}
|
}
|
||||||
|
|
||||||
public protocol FloatLiteralConvertible {
|
public protocol FloatLiteralConvertible {
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ public typealias StringLiteralType = String
|
|||||||
// Rationale: 1024 bits are enough to represent the absolute value of min/max
|
// Rationale: 1024 bits are enough to represent the absolute value of min/max
|
||||||
// IEEE Binary64, and we need 1 bit to represent the sign. Instead of using
|
// IEEE Binary64, and we need 1 bit to represent the sign. Instead of using
|
||||||
// 1025, we use the next round number -- 2048.
|
// 1025, we use the next round number -- 2048.
|
||||||
public typealias MaxBuiltinIntegerType = Builtin.Int2048
|
public typealias _MaxBuiltinIntegerType = Builtin.Int2048
|
||||||
public typealias MaxBuiltinFloatType = Builtin.FPIEEE64
|
public typealias _MaxBuiltinFloatType = Builtin.FPIEEE64
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Standard protocols
|
// Standard protocols
|
||||||
|
|||||||
Reference in New Issue
Block a user