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

This commit is contained in:
Piotr Caban 2013-01-16 14:27:53 +01:00 committed by Alexandre Julliard
parent 383bbb87f6
commit 3e97454837
2 changed files with 22 additions and 6 deletions

View File

@ -1223,6 +1223,13 @@ complex_float* __thiscall complex_float_div_assign(complex_float *this, const co
return complex_float_div(this, &tmp, r); return complex_float_div(this, &tmp, r);
} }
/* ??$arg@M@std@@YAMABV?$complex@M@0@@Z */
/* ??$arg@M@std@@YAMAEBV?$complex@M@0@@Z */
float __cdecl complex_float_arg(const complex_float *c)
{
return atan2(c->imag, c->real);
}
/* ??0?$_Complex_base@NU_C_double_complex@@@std@@QAE@ABN0@Z */ /* ??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@NU_C_double_complex@@@std@@QEAA@AEBN0@Z */
/* ??0?$_Complex_base@OU_C_ldouble_complex@@@std@@QAE@ABO0@Z */ /* ??0?$_Complex_base@OU_C_ldouble_complex@@@std@@QAE@ABO0@Z */
@ -1622,3 +1629,12 @@ complex_double* __thiscall complex_double_div_assign(complex_double *this, const
complex_double tmp = *this; complex_double tmp = *this;
return complex_double_div(this, &tmp, r); return complex_double_div(this, &tmp, r);
} }
/* ??$arg@N@std@@YANABV?$complex@N@0@@Z */
/* ??$arg@N@std@@YANAEBV?$complex@N@0@@Z */
/* ??$arg@O@std@@YAOABV?$complex@O@0@@Z */
/* ??$arg@O@std@@YAOAEBV?$complex@O@0@@Z */
double __cdecl complex_double_arg(const complex_double *c)
{
return atan2(c->imag, c->real);
}

View File

@ -356,12 +356,12 @@
@ stub -arch=win64 ??$abs@N@std@@YANAEBV?$complex@N@0@@Z @ stub -arch=win64 ??$abs@N@std@@YANAEBV?$complex@N@0@@Z
@ stub -arch=win32 ??$abs@O@std@@YAOABV?$complex@O@0@@Z @ stub -arch=win32 ??$abs@O@std@@YAOABV?$complex@O@0@@Z
@ stub -arch=win64 ??$abs@O@std@@YAOAEBV?$complex@O@0@@Z @ stub -arch=win64 ??$abs@O@std@@YAOAEBV?$complex@O@0@@Z
@ stub -arch=win32 ??$arg@M@std@@YAMABV?$complex@M@0@@Z @ cdecl -arch=win32 ??$arg@M@std@@YAMABV?$complex@M@0@@Z(ptr) complex_float_arg
@ stub -arch=win64 ??$arg@M@std@@YAMAEBV?$complex@M@0@@Z @ cdecl -arch=win64 ??$arg@M@std@@YAMAEBV?$complex@M@0@@Z(ptr) complex_float_arg
@ stub -arch=win32 ??$arg@N@std@@YANABV?$complex@N@0@@Z @ cdecl -arch=win32 ??$arg@N@std@@YANABV?$complex@N@0@@Z(ptr) complex_double_arg
@ stub -arch=win64 ??$arg@N@std@@YANAEBV?$complex@N@0@@Z @ cdecl -arch=win64 ??$arg@N@std@@YANAEBV?$complex@N@0@@Z(ptr) complex_double_arg
@ stub -arch=win32 ??$arg@O@std@@YAOABV?$complex@O@0@@Z @ cdecl -arch=win32 ??$arg@O@std@@YAOABV?$complex@O@0@@Z(ptr) complex_double_arg
@ stub -arch=win64 ??$arg@O@std@@YAOAEBV?$complex@O@0@@Z @ 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=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=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=win32 ??$conj@N@std@@YA?AV?$complex@N@0@ABV10@@Z