File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,11 @@ if Self == 'Float16':
43
43
SelfDocComment = '''\
44
44
/// A half-precision (16b), floating-point value type.
45
45
///
46
- /// `Float16` is available on Apple silicon,
47
- /// and unavailable on Intel when targeting macOS.'''
46
+ /// On macOS, `Float16` is only available when targeting Apple silicon.
47
+ /// On other supported platforms, `Float16` is available for all
48
+ /// architectures. If the specified target supports 16-bit floating point
49
+ /// arithmetic directly, those instructions will be used; otherwise Float16
50
+ /// arithmetic will be emulated by the swift compiler and runtime.'''
48
51
elif Self == 'Float':
49
52
SelfDocComment = '''\
50
53
/// A single-precision, floating-point value type.'''
@@ -57,9 +60,8 @@ elif Self == 'Float80':
57
60
SelfDocComment = '''\
58
61
/// An extended-precision, floating-point value type.
59
62
///
60
- /// `Float80` is available on Intel
61
- /// when the target system supports an 80-bit long double type,
62
- /// and unavailable on Apple silicon.'''
63
+ /// `Float80` is available on x86 if the target system's `long double` C type
64
+ /// is 80-bit, and unavailable otherwise.'''
63
65
64
66
else :
65
67
raise ValueError( 'Unhandled float type. ')
You can’t perform that action at this time.
0 commit comments