Skip to content

Commit 0f95317

Browse files
committed
Library Code from OGWS
1 parent bbc3be3 commit 0f95317

1,397 files changed

Lines changed: 367592 additions & 14963 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/R42P69/splits.txt

Lines changed: 172 additions & 172 deletions
Large diffs are not rendered by default.

configure.py

Lines changed: 723 additions & 61 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ inline TPtr find(TPtr first, TPtr last, const T& value) {
2222
}
2323

2424
template <typename TPtr> inline long distance(TPtr first, TPtr last) {
25-
random_access_iterator_tag tag;
26-
return __distance(first, last, tag);
25+
return __distance(first, last, random_access_iterator_tag());
2726
}
2827

2928
template <typename TPtr>
30-
inline long __distance(TPtr first, TPtr last,
31-
random_access_iterator_tag /* tag */) {
29+
inline long __distance(TPtr first, TPtr last, random_access_iterator_tag) {
3230
return static_cast<long>(last - first);
3331
}
3432

@@ -74,8 +72,7 @@ inline void __selection_sort(TIt first, TIt last, TCompare compare) {
7472
}
7573

7674
template <typename TCompare, typename TIt>
77-
void __sort132(TIt a1, TIt a2, TIt a3, TCompare compare)
78-
__attribute__((never_inline)) {
75+
void __sort132(TIt a1, TIt a2, TIt a3, TCompare compare) DECOMP_DONT_INLINE {
7976
bool b1 = !compare(*a3, *a1);
8077
bool b2 = !compare(*a2, *a3);
8178

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

include/MSL/cmath

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#ifndef MSL_CPP_CMATH_H
2+
#define MSL_CPP_CMATH_H
3+
#include <math.h>
4+
#ifdef __cplusplus
5+
6+
// Remove C macro
7+
#undef fabs
8+
9+
namespace std {
10+
using ::acos;
11+
using ::acosf;
12+
using ::asin;
13+
using ::asinf;
14+
using ::atan;
15+
using ::atan2;
16+
using ::atan2f;
17+
using ::ceil;
18+
using ::ceilf;
19+
using ::copysign;
20+
using ::cos;
21+
using ::cosf;
22+
using ::fabsf;
23+
using ::floor;
24+
using ::floorf;
25+
using ::fmod;
26+
using ::fmodf;
27+
using ::frexp;
28+
using ::ldexp;
29+
using ::ldexpf;
30+
using ::modf;
31+
using ::modff;
32+
using ::nan;
33+
using ::pow;
34+
using ::scalbn;
35+
using ::sin;
36+
using ::sinf;
37+
using ::sqrt;
38+
using ::sqrtf;
39+
using ::tan;
40+
using ::tanf;
41+
42+
inline float sqrt(float x) {
43+
return ::sqrtf(x);
44+
}
45+
46+
// TODO: Very fake!
47+
inline double fabs_wrapper(double x) {
48+
return __fabs(x);
49+
}
50+
51+
inline float fabs(float x) {
52+
return fabs_wrapper(x);
53+
}
54+
55+
} // namespace std
56+
57+
#endif
58+
#endif
File renamed without changes.

0 commit comments

Comments
 (0)