Did someone hnow how this can be translated in masm ?
Quote
typedef struct
{
float real, imag;
} complex;
typedef struct
{
double real, imag;
} doublecomplex;
h2incx , http://www.japheth.de/h2incX.html
you should try it some time.
;--- include file created by h2incx v0.99.14, copyright 2005 japheth
;--- source file: 1.h, last modified: 7/9/2009 23:55
complex struct
real REAL4 ?
imag REAL4 ?
complex ends
doublecomplex struct
real REAL8 ?
imag REAL8 ?
doublecomplex ends
;--- errors: 0
;--- end of file ---
Drizz's solution gets mitchi's seal of approval.
i am guessing that is how they represnt an imaginary real ?
i bet Japeth would approve as well - lol
(http://www.yellowandblack.com.au/forum/images/smilies/WeAreNotWorthy.gif)
So is is real, or imaginary? :bg
it's an imaginary real :P
kinda like that time i went on a date with Charlize Theron - lol
Thanks,
The good answer win a translation of 32 bits header files for the amd math lib,acml4.3.0. :U
I don't know if it can be used with masm and how ?
Perhaps is there here someone to test it ?.
http://developer.amd.com/cpu/Libraries/acml/Pages/default.aspx
c Prototypes must work with masm,I have modify the zip
[attachment deleted by admin]
paradox struct
real REAL4 ?
imag REAL4 ?
paradox ends
doubleparadox struct
real REAL8 ?
imag REAL8 ?
doubleparadox ends
:lol
Notes: Prototypes are not standard (nothing say it in the file as in the sdk)
Quote
; 23 : x[2] = compose_complex(1.0, 3.0);
push ecx *
fld DWORD PTR __real@40400000
fstp DWORD PTR [esp]
push ecx *
fld1
fstp DWORD PTR [esp]
call _compose_complex
******* add esp, 8 **********************
mov DWORD PTR _x$[ebp+16], eax
mov DWORD PTR _x$[ebp+20], edx