@@ -127,33 +127,108 @@ static inline __swift_size_t _swift_stdlib_malloc_size(const void *ptr) {
127
127
128
128
// Math library functions
129
129
static inline SWIFT_ALWAYS_INLINE
130
- float _stdlib_remainderf (float _self, float _other) {
130
+ float _swift_stdlib_tanf (float x) {
131
+ return __builtin_tanf (x);
132
+ }
133
+
134
+ static inline SWIFT_ALWAYS_INLINE
135
+ float _swift_stdlib_acosf (float x) {
136
+ return __builtin_acosf (x);
137
+ }
138
+
139
+ static inline SWIFT_ALWAYS_INLINE
140
+ float _swift_stdlib_asinf (float x) {
141
+ return __builtin_asinf (x);
142
+ }
143
+
144
+ static inline SWIFT_ALWAYS_INLINE
145
+ float _swift_stdlib_atanf (float x) {
146
+ return __builtin_atanf (x);
147
+ }
148
+
149
+ static inline SWIFT_ALWAYS_INLINE
150
+ float _swift_stdlib_atan2f (float y, float x) {
151
+ return __builtin_atan2f (y, x);
152
+ }
153
+
154
+ static inline SWIFT_ALWAYS_INLINE
155
+ float _swift_stdlib_remainderf (float _self, float _other) {
131
156
return __builtin_remainderf (_self, _other);
132
157
}
133
158
134
159
static inline SWIFT_ALWAYS_INLINE
135
- float _stdlib_squareRootf (float _self) {
160
+ float _swift_stdlib_squareRootf (float _self) {
136
161
return __builtin_sqrtf (_self);
137
162
}
163
+
164
+ static inline SWIFT_ALWAYS_INLINE
165
+ double _swift_stdlib_tan (double x) {
166
+ return __builtin_tan (x);
167
+ }
168
+
169
+ static inline SWIFT_ALWAYS_INLINE
170
+ double _swift_stdlib_acos (double x) {
171
+ return __builtin_acos (x);
172
+ }
173
+
174
+ static inline SWIFT_ALWAYS_INLINE
175
+ double _swift_stdlib_asin (double x) {
176
+ return __builtin_asin (x);
177
+ }
178
+
179
+ static inline SWIFT_ALWAYS_INLINE
180
+ double _swift_stdlib_atan (double x) {
181
+ return __builtin_atan (x);
182
+ }
183
+
184
+ static inline SWIFT_ALWAYS_INLINE
185
+ double _swift_stdlib_atan2 (double y, double x) {
186
+ return __builtin_atan2 (y, x);
187
+ }
138
188
139
189
static inline SWIFT_ALWAYS_INLINE
140
- double _stdlib_remainder (double _self, double _other) {
190
+ double _swift_stdlib_remainder (double _self, double _other) {
141
191
return __builtin_remainder (_self, _other);
142
192
}
143
193
144
194
static inline SWIFT_ALWAYS_INLINE
145
- double _stdlib_squareRoot (double _self) {
195
+ double _swift_stdlib_squareRoot (double _self) {
146
196
return __builtin_sqrt (_self);
147
197
}
148
198
149
199
#if !defined _WIN32 && (defined __i386__ || defined __x86_64__)
150
200
static inline SWIFT_ALWAYS_INLINE
151
- long double _stdlib_remainderl (long double _self, long double _other) {
201
+ long double _swift_stdlib_tanl (long double x) {
202
+ return __builtin_tanl (x);
203
+ }
204
+
205
+ static inline SWIFT_ALWAYS_INLINE
206
+ long double _swift_stdlib_acosl (long double x) {
207
+ return __builtin_acosl (x);
208
+ }
209
+
210
+ static inline SWIFT_ALWAYS_INLINE
211
+ long double _swift_stdlib_asinl (long double x) {
212
+ return __builtin_asinl (x);
213
+ }
214
+
215
+ static inline SWIFT_ALWAYS_INLINE
216
+ long double _swift_stdlib_atanl (long double x) {
217
+ return __builtin_atanl (x);
218
+ }
219
+
220
+ static inline SWIFT_ALWAYS_INLINE
221
+ long double _swift_stdlib_atan2l (long double y, long double x) {
222
+ return __builtin_atan2l (y, x);
223
+ }
224
+
225
+ static inline SWIFT_ALWAYS_INLINE
226
+ long double _swift_stdlib_remainderl (long double _self, long double _other) {
152
227
return __builtin_remainderl (_self, _other);
153
228
}
154
229
155
230
static inline SWIFT_ALWAYS_INLINE
156
- long double _stdlib_squareRootl (long double _self) {
231
+ long double _swift_stdlib_squareRootl (long double _self) {
157
232
return __builtin_sqrtl (_self);
158
233
}
159
234
#endif
0 commit comments