/[jscoverage]/trunk/js/jscpucfg.h
ViewVC logotype

Diff of /trunk/js/jscpucfg.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 459 by siliconforks, Thu Oct 23 19:03:33 2008 UTC revision 460 by siliconforks, Sat Sep 26 23:15:22 2009 UTC
# Line 49  Line 49 
49  #if defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)  #if defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)
50  #define IS_LITTLE_ENDIAN 1  #define IS_LITTLE_ENDIAN 1
51  #undef  IS_BIG_ENDIAN  #undef  IS_BIG_ENDIAN
   
 #define JS_BYTES_PER_BYTE   1L  
 #define JS_BYTES_PER_SHORT  2L  
 #define JS_BYTES_PER_INT    4L  
 #define JS_BYTES_PER_INT64  8L  
 #define JS_BYTES_PER_LONG   4L  
 #define JS_BYTES_PER_FLOAT  4L  
52  #define JS_BYTES_PER_DOUBLE 8L  #define JS_BYTES_PER_DOUBLE 8L
53  #define JS_BYTES_PER_WORD   8L  #define JS_BYTES_PER_WORD   8L
54  #define JS_BYTES_PER_DWORD  8L  #define JS_BITS_PER_WORD_LOG2   6
   
 #define JS_BITS_PER_BYTE    8L  
 #define JS_BITS_PER_SHORT   16L  
 #define JS_BITS_PER_INT     32L  
 #define JS_BITS_PER_INT64   64L  
 #define JS_BITS_PER_LONG    32L  
 #define JS_BITS_PER_FLOAT   32L  
 #define JS_BITS_PER_DOUBLE  64L  
 #define JS_BITS_PER_WORD    64L  
   
 #define JS_BITS_PER_BYTE_LOG2   3L  
 #define JS_BITS_PER_SHORT_LOG2  4L  
 #define JS_BITS_PER_INT_LOG2    5L  
 #define JS_BITS_PER_INT64_LOG2  6L  
 #define JS_BITS_PER_LONG_LOG2   5L  
 #define JS_BITS_PER_FLOAT_LOG2  5L  
 #define JS_BITS_PER_DOUBLE_LOG2 6L  
 #define JS_BITS_PER_WORD_LOG2   6L  
   
 #define JS_ALIGN_OF_SHORT   2L  
 #define JS_ALIGN_OF_INT     4L  
 #define JS_ALIGN_OF_LONG    4L  
 #define JS_ALIGN_OF_INT64   8L  
 #define JS_ALIGN_OF_FLOAT   4L  
 #define JS_ALIGN_OF_DOUBLE  8L  
55  #define JS_ALIGN_OF_POINTER 8L  #define JS_ALIGN_OF_POINTER 8L
 #define JS_ALIGN_OF_WORD    8L  
   
 #define JS_BYTES_PER_WORD_LOG2   3L  
 #define JS_BYTES_PER_DWORD_LOG2  3L  
 #define PR_WORDS_PER_DWORD_LOG2  0L  
56  #else  /* !(defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)) */  #else  /* !(defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)) */
57  #error "CPU type is unknown"  #error "CPU type is unknown"
58  #endif /* !(defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)) */  #endif /* !(defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)) */
# Line 102  Line 65 
65    
66  #define IS_LITTLE_ENDIAN 1  #define IS_LITTLE_ENDIAN 1
67  #undef  IS_BIG_ENDIAN  #undef  IS_BIG_ENDIAN
   
 #define JS_BYTES_PER_BYTE   1L  
 #define JS_BYTES_PER_SHORT  2L  
 #define JS_BYTES_PER_INT    4L  
 #define JS_BYTES_PER_INT64  8L  
 #define JS_BYTES_PER_LONG   4L  
 #define JS_BYTES_PER_FLOAT  4L  
68  #define JS_BYTES_PER_DOUBLE 8L  #define JS_BYTES_PER_DOUBLE 8L
69  #define JS_BYTES_PER_WORD   4L  #define JS_BYTES_PER_WORD   4L
70  #define JS_BYTES_PER_DWORD  8L  #define JS_BITS_PER_WORD_LOG2   5
   
 #define JS_BITS_PER_BYTE    8L  
 #define JS_BITS_PER_SHORT   16L  
 #define JS_BITS_PER_INT     32L  
 #define JS_BITS_PER_INT64   64L  
 #define JS_BITS_PER_LONG    32L  
 #define JS_BITS_PER_FLOAT   32L  
 #define JS_BITS_PER_DOUBLE  64L  
 #define JS_BITS_PER_WORD    32L  
   
 #define JS_BITS_PER_BYTE_LOG2   3L  
 #define JS_BITS_PER_SHORT_LOG2  4L  
 #define JS_BITS_PER_INT_LOG2    5L  
 #define JS_BITS_PER_INT64_LOG2  6L  
 #define JS_BITS_PER_LONG_LOG2   5L  
 #define JS_BITS_PER_FLOAT_LOG2  5L  
 #define JS_BITS_PER_DOUBLE_LOG2 6L  
 #define JS_BITS_PER_WORD_LOG2   5L  
   
 #define JS_ALIGN_OF_SHORT   2L  
 #define JS_ALIGN_OF_INT     4L  
 #define JS_ALIGN_OF_LONG    4L  
 #define JS_ALIGN_OF_INT64   8L  
 #define JS_ALIGN_OF_FLOAT   4L  
 #define JS_ALIGN_OF_DOUBLE  4L  
71  #define JS_ALIGN_OF_POINTER 4L  #define JS_ALIGN_OF_POINTER 4L
 #define JS_ALIGN_OF_WORD    4L  
72    
 #define JS_BYTES_PER_WORD_LOG2   2L  
 #define JS_BYTES_PER_DWORD_LOG2  3L  
 #define PR_WORDS_PER_DWORD_LOG2  1L  
73  #endif /* _WIN32 || XP_OS2 || WINCE*/  #endif /* _WIN32 || XP_OS2 || WINCE*/
74    
 #if defined(_WINDOWS) && !defined(_WIN32) /* WIN16 */  
   
 #define IS_LITTLE_ENDIAN 1  
 #undef  IS_BIG_ENDIAN  
   
 #define JS_BYTES_PER_BYTE   1L  
 #define JS_BYTES_PER_SHORT  2L  
 #define JS_BYTES_PER_INT    2L  
 #define JS_BYTES_PER_INT64  8L  
 #define JS_BYTES_PER_LONG   4L  
 #define JS_BYTES_PER_FLOAT  4L  
 #define JS_BYTES_PER_DOUBLE 8L  
 #define JS_BYTES_PER_WORD   4L  
 #define JS_BYTES_PER_DWORD  8L  
   
 #define JS_BITS_PER_BYTE    8L  
 #define JS_BITS_PER_SHORT   16L  
 #define JS_BITS_PER_INT     16L  
 #define JS_BITS_PER_INT64   64L  
 #define JS_BITS_PER_LONG    32L  
 #define JS_BITS_PER_FLOAT   32L  
 #define JS_BITS_PER_DOUBLE  64L  
 #define JS_BITS_PER_WORD    32L  
   
 #define JS_BITS_PER_BYTE_LOG2   3L  
 #define JS_BITS_PER_SHORT_LOG2  4L  
 #define JS_BITS_PER_INT_LOG2    4L  
 #define JS_BITS_PER_INT64_LOG2  6L  
 #define JS_BITS_PER_LONG_LOG2   5L  
 #define JS_BITS_PER_FLOAT_LOG2  5L  
 #define JS_BITS_PER_DOUBLE_LOG2 6L  
 #define JS_BITS_PER_WORD_LOG2   5L  
   
 #define JS_ALIGN_OF_SHORT   2L  
 #define JS_ALIGN_OF_INT     2L  
 #define JS_ALIGN_OF_LONG    2L  
 #define JS_ALIGN_OF_INT64   2L  
 #define JS_ALIGN_OF_FLOAT   2L  
 #define JS_ALIGN_OF_DOUBLE  2L  
 #define JS_ALIGN_OF_POINTER 2L  
 #define JS_ALIGN_OF_WORD    2L  
   
 #define JS_BYTES_PER_WORD_LOG2   2L  
 #define JS_BYTES_PER_DWORD_LOG2  3L  
 #define PR_WORDS_PER_DWORD_LOG2  1L  
   
 #endif /* defined(_WINDOWS) && !defined(_WIN32) */  
   
75  #elif defined(XP_UNIX) || defined(XP_BEOS)  #elif defined(XP_UNIX) || defined(XP_BEOS)
76    
77  #error "This file is supposed to be auto-generated on UNIX platforms, but the"  #error "This file is supposed to be auto-generated on UNIX platforms, but the"

Legend:
Removed from v.459  
changed lines
  Added in v.460

  ViewVC Help
Powered by ViewVC 1.1.24