Hallo,
kann man aus dem GCC per ifdef oder so rauslesen, für welche Plattform (x86, x86_64 etc) der Code compiliert wird? FAAD2 hat soeine tolle Portabilität, Standart ist unsigned long, und für amd64 gepatcht ist uint32_t. Ich hab jetzt vor für amd64 "uint32_t sample_rate" und für alle anderen "unsigned long sample_rate" zu nehmen. Gibts da was von GNUopharm?
MfG
Code:
giuly@Novoli ~ $ cpp -dM | grep 64
#define __WCHAR_MAX__ 2147483647
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __x86_64 1
#define __amd64 1
#define __LP64__ 1
#define __x86_64__ 1
#define __LDBL_MANT_DIG__ 64
#define __INT_MAX__ 2147483647
#define __amd64__ 1
#define _LP64 1
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
Lesezeichen