msvcp90: Added std::conj(complex) implementation.

This commit is contained in:
Piotr Caban 2013-01-24 12:28:19 +01:00 committed by Alexandre Julliard
parent 2e4eb12219
commit 94da034364
2 changed files with 26 additions and 6 deletions

View File

@ -1303,6 +1303,15 @@ float __cdecl complex_float_abs(const complex_float *c)
return hypotf(c->real, c->imag);
}
/* ??$conj@M@std@@YA?AV?$complex@M@0@ABV10@@Z */
/* ??$conj@M@std@@YA?AV?$complex@M@0@AEBV10@@Z */
complex_float* __cdecl complex_float_conj(complex_float *ret, const complex_float *c)
{
ret->real = c->real;
ret->imag = -c->imag;
return ret;
}
/* ??0?$_Complex_base@NU_C_double_complex@@@std@@QAE@ABN0@Z */
/* ??0?$_Complex_base@NU_C_double_complex@@@std@@QEAA@AEBN0@Z */
/* ??0?$_Complex_base@OU_C_ldouble_complex@@@std@@QAE@ABO0@Z */
@ -1800,3 +1809,14 @@ double __cdecl complex_double_abs(const complex_double *c)
{
return hypot(c->real, c->imag);
}
/* ??$conj@N@std@@YA?AV?$complex@N@0@ABV10@@Z */
/* ??$conj@N@std@@YA?AV?$complex@N@0@AEBV10@@Z */
/* ??$conj@O@std@@YA?AV?$complex@O@0@ABV10@@Z */
/* ??$conj@O@std@@YA?AV?$complex@O@0@AEBV10@@Z */
complex_double* __cdecl complex_double_conj(complex_double *ret, const complex_double *c)
{
ret->real = c->real;
ret->imag = -c->imag;
return ret;
}

View File

@ -362,12 +362,12 @@
@ cdecl -arch=win64 ??$arg@N@std@@YANAEBV?$complex@N@0@@Z(ptr) complex_double_arg
@ cdecl -arch=win32 ??$arg@O@std@@YAOABV?$complex@O@0@@Z(ptr) complex_double_arg
@ cdecl -arch=win64 ??$arg@O@std@@YAOAEBV?$complex@O@0@@Z(ptr) complex_double_arg
@ stub -arch=win32 ??$conj@M@std@@YA?AV?$complex@M@0@ABV10@@Z
@ stub -arch=win64 ??$conj@M@std@@YA?AV?$complex@M@0@AEBV10@@Z
@ stub -arch=win32 ??$conj@N@std@@YA?AV?$complex@N@0@ABV10@@Z
@ stub -arch=win64 ??$conj@N@std@@YA?AV?$complex@N@0@AEBV10@@Z
@ stub -arch=win32 ??$conj@O@std@@YA?AV?$complex@O@0@ABV10@@Z
@ stub -arch=win64 ??$conj@O@std@@YA?AV?$complex@O@0@AEBV10@@Z
@ cdecl -arch=win32 ??$conj@M@std@@YA?AV?$complex@M@0@ABV10@@Z(ptr ptr) complex_float_conj
@ cdecl -arch=win64 ??$conj@M@std@@YA?AV?$complex@M@0@AEBV10@@Z(ptr ptr) complex_float_conj
@ cdecl -arch=win32 ??$conj@N@std@@YA?AV?$complex@N@0@ABV10@@Z(ptr ptr) complex_double_conj
@ cdecl -arch=win64 ??$conj@N@std@@YA?AV?$complex@N@0@AEBV10@@Z(ptr ptr) complex_double_conj
@ cdecl -arch=win32 ??$conj@O@std@@YA?AV?$complex@O@0@ABV10@@Z(ptr ptr) complex_double_conj
@ cdecl -arch=win64 ??$conj@O@std@@YA?AV?$complex@O@0@AEBV10@@Z(ptr ptr) complex_double_conj
@ stub -arch=win32 ??$cos@M@std@@YA?AV?$complex@M@0@ABV10@@Z
@ stub -arch=win64 ??$cos@M@std@@YA?AV?$complex@M@0@AEBV10@@Z
@ stub -arch=win32 ??$cos@N@std@@YA?AV?$complex@N@0@ABV10@@Z