* support little endian in getFPSCR/setFPSCR

git-svn-id: trunk@30211 -
This commit is contained in:
Jonas Maebe 2015-03-14 18:36:11 +00:00
parent 3ab62dcfed
commit e3f451066b

View File

@ -31,14 +31,22 @@ const
function getFPSCR : DWord; assembler; nostackframe;
asm
mffs f0
stfd f0, -12(r1)
lwz r3, -8(r1)
stfd f0, -16(r1)
{$ifdef FPC_BIG_ENDIAN}
lwz r3, -12(r1)
{$else}
lwz r3, -16(r1)
{$endif}
end;
procedure setFPSCR(newFPSCR : DWord); assembler; nostackframe;
asm
stw r3, -8(r1)
lfd f0, -12(r1)
{$ifdef FPC_BIG_ENDIAN}
stw r3, -12(r1)
{$else}
stw r3, -16(r1)
{$endif}
lfd f0, -16(r1)
mtfsf 255, f0
end;