소스 검색

Mirror upstream commit: make int_fast8_t and uint_fast8_t the same as int16_t and uint16_t.
(this is because division is faster with 16-bit types than with 8-bit types, as 8-bit types require sign/zero extension)

git-svn-id: file:///var/svn/tigccpp/trunk@1294 9552661e-59e3-4036-b4f2-dbe53926924f

debrouxl 15 년 전
부모
커밋
298f7ad9c8

+ 1 - 1
tigcc/doc/System/Include/stdint.h/INT_FAST8_MAX.hsf

@@ -2,7 +2,7 @@
 Name=INT_FAST8_MAX
 Type=Constant
 Header Files=stdint.h
-Definition=#define INT_FAST8_MAX (127)
+Definition=#define INT_FAST8_MAX (32767)
 
 [Description]
 Maximal value which can be stored in a int_fast8_t variable.

+ 1 - 1
tigcc/doc/System/Include/stdint.h/UINT_FAST8_MAX.hsf

@@ -2,7 +2,7 @@
 Name=UINT_FAST8_MAX
 Type=Constant
 Header Files=stdint.h
-Definition=#define UINT_FAST8_MAX (255)
+Definition=#define UINT_FAST8_MAX (65535)
 
 [Description]
 Maximal value which can be stored in a uint_fast8_t variable.

+ 1 - 1
tigcc/doc/System/Include/stdint.h/int_fast8_t.hsf

@@ -3,7 +3,7 @@ Name=int_fast8_t
 Type=Type
 Subtype=Scalar
 Header Files=stdint.h
-Definition=typedef signed char int_fast8_t;
+Definition=typedef short int int_fast8_t;
 
 [Description]
 An alias type for a signed integer type that contains at least 8 bits, the one that the processor handles most efficiently.

+ 1 - 1
tigcc/doc/System/Include/stdint.h/uint_fast8_t.hsf

@@ -3,7 +3,7 @@ Name=uint_fast8_t
 Type=Type
 Subtype=Scalar
 Header Files=stdint.h
-Definition=typedef unsigned char uint_fast8_t;
+Definition=typedef unsigned short int uint_fast8_t;
 
 [Description]
 An alias type for an unsigned integer type that contains at least 8 bits, the one that the processor handles most efficiently.

BIN
tigcc/include/C/Completion/stdint.ccf