@@ -34,7 +34,9 @@ import SwiftShims
34
34
/// ElementaryFunctions and FloatingPoint.
35
35
///
36
36
/// [elfn]: http://en.wikipedia.org/wiki/Elementary_function
37
- @available ( macOS 9999 , iOS 9999 , tvOS 9999 , watchOS 9999 , * )
37
+ // SWIFT_ENABLE_TENSORFLOW
38
+ // NOTE(TF-796): Make `ElementaryFunctions` available on macOS.
39
+ // @available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *)
38
40
public protocol ElementaryFunctions {
39
41
40
42
% for func in ElementaryFunctions:
@@ -125,7 +127,9 @@ extension ${Self}: ElementaryFunctions {
125
127
% end
126
128
% end
127
129
128
- @available ( macOS 9999 , iOS 9999 , tvOS 9999 , watchOS 9999 , * )
130
+ // SWIFT_ENABLE_TENSORFLOW
131
+ // NOTE(TF-796): Make `ElementaryFunctions` available on macOS.
132
+ // @available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *)
129
133
extension SIMD where Scalar: ElementaryFunctions {
130
134
% for func in ElementaryFunctions:
131
135
@@ -168,6 +172,8 @@ extension SIMD where Scalar: ElementaryFunctions {
168
172
}
169
173
170
174
% for n in [ 2 , 3 , 4 , 8 , 16 , 32 , 64 ] :
171
- @available ( macOS 9999 , iOS 9999 , tvOS 9999 , watchOS 9999 , * )
175
+ // SWIFT_ENABLE_TENSORFLOW
176
+ // NOTE(TF-796): Make `ElementaryFunctions` available on macOS.
177
+ // @available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *)
172
178
extension SIMD${ n} : ElementaryFunctions where Scalar: ElementaryFunctions { }
173
179
% end
0 commit comments