Difference between revisions of "C Types"

From VideoLAN Wiki
Jump to navigation Jump to search
(New page: {| class="wikitable" style="font-size: smaller; text-align: center; width: 100%; margin: 1em auto 1em auto; border : 1px" |+ ''' C Types''' |- ! name !! printf format !! Win32 size !! Lin...)
 
Line 2: Line 2:
 
|+ ''' C Types'''  
 
|+ ''' C Types'''  
 
|-
 
|-
! name !! printf format !! Win32 size !! Linux 32 size !! LP64 Size !! LLP64 Size !!
+
! name !! printf format !! Win32 size !! ILP32 size !! LP64 Size !! LLP64 Size !!
 
|-
 
|-
 
! short
 
! short
|| hd ||                                                                  
+
|| hd || 16 || 16 || 16 || 16 ||
 
|-
 
|-
 
!int  
 
!int  
|| d ||
+
|| d || 32 || 32 || 32 || 32 ||
 
|-
 
|-
 
! long
 
! long
|| ld ||
+
|| ld || 32 || 32 || 64 || 64 ||
 
|-
 
|-
 
! int8_t  
 
! int8_t  
|| "PRId8" ||
+
|| "PRId8" || 8 || 8 || 8 || 8 ||  
 
|-
 
|-
 
! int16_t   
 
! int16_t   
|| "PRId16" ||
+
|| "PRId16" || 16 || 16 || 16 || 16 ||
 
|-
 
|-
 
! int32_t  
 
! int32_t  
|| "PRId32" ||
+
|| "PRId32" || 32 || 32 || 32 || 32 ||  
 
|-
 
|-
 
! int64_t  
 
! int64_t  
|| "PRId64" ||
+
|| "PRId64" || 64 || 64 || 64 || 64 ||
 
|-
 
|-
 
! unsigned short  
 
! unsigned short  
|| hu ||
+
|| hu || 16  || 16 || 16 || 16 ||
 
|-
 
|-
 
! unsigned  
 
! unsigned  
|| u  ||
+
|| u  || 32 || 32 || 32 || 32 ||
 
|-
 
|-
 
! unsigned long  
 
! unsigned long  
|| lu ||
+
|| lu || 32 || 32 || 64 || 64 ||
 
|-
 
|-
 
! uint8_t  
 
! uint8_t  
|| "PRIu8" ||
+
|| "PRIu8" || 8 || 8 || 8 || 8 ||
 
|-
 
|-
 
! uint16_t  
 
! uint16_t  
|| "PRIu16" ||
+
|| "PRIu16" || 16 || 16 || 16 || 16 ||
 
|-
 
|-
 
! uint32_t  
 
! uint32_t  
|| "PRIu32" ||
+
|| "PRIu32" || 32 || 32 || 32 || 32 ||
 
|-
 
|-
 
! uint64_t  
 
! uint64_t  
|| "PRIu64" ||
+
|| "PRIu64" || 64 || 64 || 64 || 64 ||
 
|}
 
|}

Revision as of 07:23, 17 June 2008

C Types
name printf format Win32 size ILP32 size LP64 Size LLP64 Size
short hd 16 16 16 16
int d 32 32 32 32
long ld 32 32 64 64
int8_t "PRId8" 8 8 8 8
int16_t "PRId16" 16 16 16 16
int32_t "PRId32" 32 32 32 32
int64_t "PRId64" 64 64 64 64
unsigned short hu 16 16 16 16
unsigned u 32 32 32 32
unsigned long lu 32 32 64 64
uint8_t "PRIu8" 8 8 8 8
uint16_t "PRIu16" 16 16 16 16
uint32_t "PRIu32" 32 32 32 32
uint64_t "PRIu64" 64 64 64 64