cpuinfo.pas 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by the Free Pascal development team
  4. Basic Processor information for the PowerPC
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. Unit CPUInfo;
  12. Interface
  13. Type
  14. { Architecture word - Native unsigned type }
  15. AWord = Dword;
  16. Type
  17. { the ordinal type used when evaluating constant integer expressions }
  18. TConstExprInt = int64;
  19. { ... the same unsigned }
  20. TConstExprUInt = {$ifdef fpc}qword{$else}int64{$endif};
  21. { this must be an ordinal type with the same size as a pointer }
  22. { to allow some dirty type casts for example when using }
  23. { tconstsym.value }
  24. { Note: must be unsigned!! Otherwise, ugly code like }
  25. { pointer(-1) will result in a pointer with the value }
  26. { $fffffffffffffff on a 32bit machine if the compiler uses }
  27. { int64 constants internally (JM) }
  28. TPointerOrd = DWord;
  29. Const
  30. { Size of native extended type }
  31. extended_size = 8;
  32. Implementation
  33. end.
  34. {
  35. $Log$
  36. Revision 1.1 2001-08-26 13:31:04 florian
  37. * some cg reorganisation
  38. * some PPC updates
  39. Revision 1.2 2001/08/26 13:29:34 florian
  40. * some cg reorganisation
  41. * some PPC updates
  42. }