[fpc-devel] LoadLibrary and FPU control word
LacaK
lacak at zoznam.sk
Thu Aug 18 08:26:37 CEST 2011
Because of no response I registered it as bug
http://bugs.freepascal.org/view.php?id=20011
Can you please look at least at this:
Which compiler defines are OK ? "i386" or "cpui386"
My test shows, that "i386" is NOT defined ("cpui386" IS defined), but
then I do not understand how can it work in dynlibs.pas ???
> BTW:
> When I look at function SafeLoadLibrary in dynlibs.pas there is used :
> {$ifdef i386}
> w:=get8087cw;
>
> When I look at function SafeLoadLibrary in SysUtils.inc there is used :
> {$if defined(cpui386) or defined(cpux86_64)}
> fpucw:=Get8087CW;
>
> Which conditional is correct ? ("i386" or "cpui386")
> Looking at
> http://www.freepascal.org/docs-html/prog/progap7.html#x316-331000G ...
> I see no "i386" ?
> And what "FPUX87" ? Can not be used this ?
Thanks
-Laco.
More information about the fpc-devel
mailing list