XuvTools is developed in a cooperative effort from:
  • Chair of Pattern Recognition and Image Processing [www]
  • Friedrich Miescher Institute for Biomedical Research [www]
  • Center for Biological Systems Analysis [www]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
devel:sizeof [2009/04/10 16:46]
mario added Mac
devel:sizeof [2009/04/10 17:06]
mario added Mac 32bit
Line 51: Line 51:
 </​code>​ </​code>​
  
-==== Mac intel 64bit (x86_64) ====+==== Mac Intel 32bit (i386) and Mac PowerPC 32bit (ppc) ====
  
 <​code>​ <​code>​
-#if defined(__APPLE__) && defined(__x86_64__)+#if defined(__APPLE__) && defined(__i386__) 
 +#define SIZEOF_CHAR 1
 #define SIZEOF_DOUBLE 8 #define SIZEOF_DOUBLE 8
 #define SIZEOF_FLOAT 4 #define SIZEOF_FLOAT 4
 #define SIZEOF_INT 4 #define SIZEOF_INT 4
-#define SIZEOF_LONG ​8+#define SIZEOF_LONG ​
 +#define SIZEOF_LONG_DOUBLE 16
 #define SIZEOF_LONG_LONG 8 #define SIZEOF_LONG_LONG 8
 #define SIZEOF_OFF_T 8 #define SIZEOF_OFF_T 8
-#define SIZEOF_PTRDIFF_T ​8+#define SIZEOF_PTRDIFF_T ​4
 #define SIZEOF_SHORT 2 #define SIZEOF_SHORT 2
-#define SIZEOF_SIZE_T ​8+#define SIZEOF_SIZE_T ​
 +#define SIZEOF_SSIZE_T 4
 #define SIZEOF_UNSIGNED_INT 4 #define SIZEOF_UNSIGNED_INT 4
-#define SIZEOF_UNSIGNED_LONG ​8+#define SIZEOF_UNSIGNED_LONG ​4
 #define SIZEOF_UNSIGNED_LONG_LONG 8 #define SIZEOF_UNSIGNED_LONG_LONG 8
 +// ---- extended ----
 +#define SIZEOF_INT16_T 2
 +#define SIZEOF_INT32_T 4
 +#define SIZEOF_INT64_T 8
 +#define SIZEOF_INT8_T 1
 +#define SIZEOF_INT_FAST16_T 2
 +#define SIZEOF_INT_FAST32_T 4
 +#define SIZEOF_INT_FAST64_T 8
 +#define SIZEOF_INT_FAST8_T 1
 +#define SIZEOF_INT_LEAST16_T 2
 +#define SIZEOF_INT_LEAST32_T 4
 +#define SIZEOF_INT_LEAST64_T 8
 +#define SIZEOF_INT_LEAST8_T 1
 +#define SIZEOF_UINT16_T 2
 +#define SIZEOF_UINT32_T 4
 +#define SIZEOF_UINT64_T 8
 +#define SIZEOF_UINT8_T 1
 +#define SIZEOF_UINT_FAST16_T 2
 +#define SIZEOF_UINT_FAST32_T 4
 +#define SIZEOF_UINT_FAST64_T 8
 +#define SIZEOF_UINT_FAST8_T 1
 +#define SIZEOF_UINT_LEAST16_T 2
 +#define SIZEOF_UINT_LEAST32_T 4
 +#define SIZEOF_UINT_LEAST64_T 8
 +#define SIZEOF_UINT_LEAST8_T 1
 #endif #endif
 </​code>​ </​code>​
  
- +==== Mac Intel 64bit (x86_64) and Mac PowerPC ​64bit (ppc64) ====
-==== Mac ppc 64bit (ppc64) ====+
  
 <​code>​ <​code>​
-#if defined(__APPLE__) && defined(__ppc64__)+#if defined(__APPLE__) && ​(defined(__x86_64__) || defined(__ppc64__))
 #define SIZEOF_DOUBLE 8 #define SIZEOF_DOUBLE 8
 #define SIZEOF_FLOAT 4 #define SIZEOF_FLOAT 4
devel/sizeof.txt · Last modified: 2009/04/10 17:08 by mario
Contact: admin(a)xuvtools.org