wok-next view mesa17/stuff/patches/std.patch @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents
children
line source
1 --- a/include/c99_math.h
2 +++ b/include/c99_math.h
3 @@ -192,19 +192,6 @@
4 */
5 #if __cplusplus >= 201103L && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 23))
6 #include <cmath>
7 -
8 -using std::fpclassify;
9 -using std::isfinite;
10 -using std::isinf;
11 -using std::isnan;
12 -using std::isnormal;
13 -using std::signbit;
14 -using std::isgreater;
15 -using std::isgreaterequal;
16 -using std::isless;
17 -using std::islessequal;
18 -using std::islessgreater;
19 -using std::isunordered;
20 #endif
23 --- a/src/gallium/drivers/swr/rasterizer/memory/Convert.h
24 +++ b/src/gallium/drivers/swr/rasterizer/memory/Convert.h
25 @@ -169,13 +169,13 @@
26 mant = uf & 0x007FFFFF;
28 // Check for out of range
29 - if (std::isnan(val))
30 + if (isnan(val))
31 {
32 exp = 0x1F;
33 mant = 0x200;
34 sign = 1; // set the sign bit for NANs
35 }
36 - else if (std::isinf(val))
37 + else if (isinf(val))
38 {
39 exp = 0x1f;
40 mant = 0x0;
41 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp
42 +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp
43 @@ -54,13 +54,13 @@
44 mant = uf & 0x007FFFFF;
46 // Check for out of range
47 - if (std::isnan(val))
48 + if (isnan(val))
49 {
50 exp = 0x1F;
51 mant = 0x200;
52 sign = 1; // set the sign bit for NANs
53 }
54 - else if (std::isinf(val))
55 + else if (isinf(val))
56 {
57 exp = 0x1f;
58 mant = 0x0;