cpuinfo.pas 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by Florian Klaempfl
  4. Basic Processor information
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. Unit cpuinfo;
  19. {$i fpcdefs.inc}
  20. Interface
  21. uses
  22. globtype;
  23. Type
  24. bestreal = extended;
  25. ts32real = single;
  26. ts64real = double;
  27. ts80real = extended;
  28. ts128real = type extended;
  29. ts64comp = type extended;
  30. pbestreal=^bestreal;
  31. tprocessors =
  32. (no_processor,
  33. ClassAthlon64
  34. );
  35. tfputype =
  36. (no_fpuprocessor,
  37. fpu_sse64
  38. );
  39. Const
  40. { Size of native extended type }
  41. extended_size = 10;
  42. { Size of a multimedia register }
  43. mmreg_size = 16;
  44. { target cpu string (used by compiler options) }
  45. target_cpu_string = 'x86_64';
  46. { calling conventions supported by the code generator }
  47. supported_calling_conventions : tproccalloptions = [
  48. pocall_internproc,
  49. pocall_compilerproc,
  50. pocall_inline,
  51. pocall_register,
  52. pocall_safecall,
  53. pocall_stdcall,
  54. pocall_cdecl,
  55. pocall_cppdecl
  56. ];
  57. processorsstr : array[tprocessors] of string[10] = ('',
  58. 'ATHLON64'
  59. );
  60. fputypestr : array[tfputype] of string[6] = ('',
  61. 'SSE64'
  62. );
  63. sse_singlescalar : set of tfputype = [fpu_sse64];
  64. sse_doublescalar : set of tfputype = [fpu_sse64];
  65. Implementation
  66. end.
  67. {
  68. $Log$
  69. Revision 1.16 2005-02-14 17:13:10 peter
  70. * truncate log
  71. Revision 1.15 2005/01/20 16:38:45 peter
  72. * load jmp_buf_size from system unit
  73. }