瀏覽代碼

* typecasting qword into dword array now respects spu endianess

pierre 23 年之前
父節點
當前提交
fdfb33d117
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      tests/test/tint642.pp

+ 11 - 0
tests/test/tint642.pp

@@ -7,9 +7,20 @@ uses
 {$endif go32v2}
    ;
 
+{$ifdef CPU68K}
+  {$define SOURCE_ENDIAN_BIG}
+{$endif}
+
+{$ifdef CPUPOWERPC}
+  {$define SOURCE_ENDIAN_BIG}
+{$endif}  
 type
    tqwordrec = packed record
+{$ifndef SOURCE_ENDIAN_BIG}   
       low,high : dword;
+{$else}
+      high, low : dword;
+{$endif}      
    end;
 
 procedure dumpqword(q : qword);