Mercurial > mxe-octave
comparison src/mingw-w64-complex-inverse-trig.patch @ 6388:dbc29160e2b2
mingw-w64: Update patch with changes applied upstream (bug #49091).
* src/mingw-w64-complex-inverse-trig.patch: Use "signbit" macro correctly.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 27 Aug 2022 13:05:12 +0200 |
parents | dc5ad8056086 |
children |
comparison
equal
deleted
inserted
replaced
6387:8bf821eb44fb | 6388:dbc29160e2b2 |
---|---|
102 @@ -106,7 +106,7 @@ __FLT_ABI(cacosh) (__FLT_TYPE __complex__ z) | 102 @@ -106,7 +106,7 @@ __FLT_ABI(cacosh) (__FLT_TYPE __complex__ z) |
103 | 103 |
104 x = __FLT_ABI(csqrt) (x); | 104 x = __FLT_ABI(csqrt) (x); |
105 | 105 |
106 - if (__real__ z < __FLT_CST(0.0)) | 106 - if (__real__ z < __FLT_CST(0.0)) |
107 + if (__FLT_ABI(signbit) (__real__ z)) | 107 + if (signbit (__real__ z)) |
108 x = -x; | 108 x = -x; |
109 | 109 |
110 __real__ x += __real__ z; | 110 __real__ x += __real__ z; |
111 @@ -114,7 +114,7 @@ __FLT_ABI(cacosh) (__FLT_TYPE __complex__ z) | 111 @@ -114,7 +114,7 @@ __FLT_ABI(cacosh) (__FLT_TYPE __complex__ z) |
112 | 112 |
113 ret = __FLT_ABI(clog) (x); | 113 ret = __FLT_ABI(clog) (x); |
114 | 114 |
115 - if (__real__ ret < __FLT_CST(0.0)) | 115 - if (__real__ ret < __FLT_CST(0.0)) |
116 + if (__FLT_ABI(signbit) (__real__ ret)) | 116 + if (signbit (__real__ ret)) |
117 ret = -ret; | 117 ret = -ret; |
118 | 118 |
119 return ret; | 119 return ret; |
120 -- | 120 -- |
121 2.35.3.windows.1 | 121 2.35.3.windows.1 |