The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 1.0.2 / 0002-Revert-Do-not-define-unimplemented-functions.patch
1 From 650380248eaad577445c88b7314307d3acd166fc Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@openadk.org>
3 Date: Sat, 25 Apr 2015 07:09:40 -0500
4 Subject: [PATCH] Revert "Do not define unimplemented functions"
5
6 This reverts commit bd3eaf83ef1b4954b6c0e7ba8bbdd29b2cd4a833.
7
8 They are now implemented.
9
10 Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
11 ---
12  include/math.h                             |  2 --
13  libc/sysdeps/linux/common/bits/mathcalls.h | 18 ------------------
14  2 files changed, 20 deletions(-)
15
16 diff --git a/include/math.h b/include/math.h
17 index c79af3f..1b54c9e 100644
18 --- a/include/math.h
19 +++ b/include/math.h
20 @@ -118,7 +118,6 @@ __BEGIN_DECLS
21  #  define _Mfloat_             float
22  # endif
23  # define _Mdouble_             _Mfloat_
24 -# define _Mdouble_is_float_
25  # ifdef __STDC__
26  #  define __MATH_PRECNAME(name,r) name##f##r
27  # else
28 @@ -127,7 +126,6 @@ __BEGIN_DECLS
29  # define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_C99
30  # define _Mdouble_END_NAMESPACE   __END_NAMESPACE_C99
31  # include <bits/mathcalls.h>
32 -# undef _Mdouble_is_float_
33  # undef        _Mdouble_
34  # undef _Mdouble_BEGIN_NAMESPACE
35  # undef _Mdouble_END_NAMESPACE
36 diff --git a/libc/sysdeps/linux/common/bits/mathcalls.h b/libc/sysdeps/linux/common/bits/mathcalls.h
37 index 3d7e34f..9bebb51 100644
38 --- a/libc/sysdeps/linux/common/bits/mathcalls.h
39 +++ b/libc/sysdeps/linux/common/bits/mathcalls.h
40 @@ -291,9 +291,7 @@ __END_NAMESPACE_C99
41  #ifdef __USE_ISOC99
42  __BEGIN_NAMESPACE_C99
43  /* True gamma function.  */
44 -# ifndef _Mdouble_is_float_
45  __MATHCALLI (tgamma,, (_Mdouble_))
46 -# endif
47  __END_NAMESPACE_C99
48  #endif
49  
50 @@ -324,9 +322,7 @@ __MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__))
51  libm_hidden_proto(nextafterl)
52  # endif
53  # if defined __USE_ISOC99 && !defined __LDBL_COMPAT
54 -#  ifndef _Mdouble_is_float_
55  __MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__))
56 -#  endif
57  # endif
58  
59  /* Return the remainder of integer divison X / Y with infinite precision.  */
60 @@ -343,15 +339,11 @@ __MATHDECLI (int,ilogb,, (_Mdouble_ __x))
61  
62  #ifdef __USE_ISOC99
63  /* Return X times (2 to the Nth power).  */
64 -# ifndef _Mdouble_is_float_
65  __MATHCALLI (scalbln,, (_Mdouble_ __x, long int __n))
66 -# endif
67  
68  /* Round X to integral value in floating-point format using current
69     rounding direction, but do not raise inexact exception.  */
70 -# ifndef _Mdouble_is_float_
71  __MATHCALLI (nearbyint,, (_Mdouble_ __x))
72 -# endif
73  
74  /* Round X to nearest integral value, rounding halfway cases away from
75     zero.  */
76 @@ -364,9 +356,7 @@ __MATHCALLX (trunc,, (_Mdouble_ __x), (__const__))
77  /* Compute remainder of X and Y and put in *QUO a value with sign of x/y
78     and magnitude congruent `mod 2^n' to the magnitude of the integral
79     quotient x/y, with n >= 3.  */
80 -# ifndef _Mdouble_is_float_
81  __MATHCALLI (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo))
82 -# endif
83  
84  
85  /* Conversion functions.  */
86 @@ -383,19 +373,13 @@ __MATHDECLI (long long int,llround,, (_Mdouble_ __x))
87  
88  
89  /* Return positive difference between X and Y.  */
90 -# ifndef _Mdouble_is_float_
91  __MATHCALLI (fdim,, (_Mdouble_ __x, _Mdouble_ __y))
92 -# endif
93  
94  /* Return maximum numeric value from X and Y.  */
95 -# ifndef _Mdouble_is_float_
96  __MATHCALLI (fmax,, (_Mdouble_ __x, _Mdouble_ __y))
97 -# endif
98  
99  /* Return minimum numeric value from X and Y.  */
100 -# ifndef _Mdouble_is_float_
101  __MATHCALLI (fmin,, (_Mdouble_ __x, _Mdouble_ __y))
102 -# endif
103  
104  
105  /* Classify given number.  */
106 @@ -406,9 +390,7 @@ __MATHDECL_PRIV (int, signbit,, (_Mdouble_ __value), (__const__))
107  
108  
109  /* Multiply-add function computed as a ternary operation.  */
110 -# ifndef _Mdouble_is_float_
111  __MATHCALLI (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z))
112 -# endif
113  #endif /* Use ISO C99.  */
114  
115  #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
116 -- 
117 2.3.2 (Apple Git-55)
118