H
hd86
Guest
MSVC (x86) defines the 'fast' integer types of <cstdint> as follows.
typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
typedef long long int_fast64_t;
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
typedef unsigned long long uint_fast64_t;
What surprises me is the definition of int_fast8_t and uint_fast8_t. The definitions imply that using a variable of type signed char or unsigned char is faster or equally fast to using int on x86 platform. This is different from what I know. Can someone comment on this.
Continue reading...
typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
typedef long long int_fast64_t;
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
typedef unsigned long long uint_fast64_t;
What surprises me is the definition of int_fast8_t and uint_fast8_t. The definitions imply that using a variable of type signed char or unsigned char is faster or equally fast to using int on x86 platform. This is different from what I know. Can someone comment on this.
Continue reading...