Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines

This commit is contained in:
Dmitri Gribenko
2016-02-17 14:40:05 -08:00
450 changed files with 8406 additions and 5202 deletions

View File

@@ -161,12 +161,29 @@ def getMinFloat(floatBits, intBits):
}%
% for bits in allFloatBits:
% Self = floatName(bits)
%{
Self = floatName(bits)
if Self == 'Float':
SelfDocComment = '''\
/// A single-precision floating-point value type.'''
elif Self == 'Double':
SelfDocComment = '''\
/// A double-precision floating-point value type.'''
elif Self == 'Float80':
SelfDocComment = '''\
/// An extended-precision floating-point value type.'''
else:
raise ValueError('Unhandled float type.')
}%
% if bits == 80:
#if arch(i386) || arch(x86_64)
% end
${SelfDocComment}
public struct ${Self} {
public // @testable
var _value: Builtin.FPIEEE${bits}