msvcp90: Added complex_float_pow impletation and tests

YongHao Hu christopherwuy at gmail.com
Thu Apr 24 23:14:44 CDT 2014


---
  dlls/msvcp70/msvcp70.spec |   12 ++++-----
  dlls/msvcp71/msvcp71.spec |   12 ++++-----
  dlls/msvcp80/msvcp80.spec |   12 ++++-----
  dlls/msvcp90/math.c       |   18 ++++++++++++++
  dlls/msvcp90/msvcp90.spec |   12 ++++-----
  dlls/msvcp90/tests/misc.c |   60 
+++++++++++++++++++++++++++++++++++++++++++++
  6 files changed, 102 insertions(+), 24 deletions(-)

1.
Hi,it's my first time to send patch. :)

+complex_float* __cdecl complex_float_pow_ci(complex_float *ret, const 
complex_float *l, int r)
+{
+    complex_float c = { (float)r, 0 };
+    return complex_float_pow(ret, l, &c);
+}
The reason why I added (float)r is the warning C4244 "conversion from 
'int' to 'float', possible loss of data".
However,I didn't find anyone do this conversion before in the code.
Is it necessary?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msvcp90-Added-complex_float_pow-impletation-and-tests.txt
Type: text/x-patch
Size: 18759 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140425/0ae64bbe/attachment-0001.bin>


More information about the wine-patches mailing list