search for: supports_pragma_pack

Displaying 3 results from an estimated 3 matches for "supports_pragma_pack".

2004 Aug 06
2
Speex 1.0 RC2 released
I'd like to announce the second release candidate for Speex 1.0. It fixes some minor bugs and reduces the binary size somewhat as the codebooks were converted from float values to chars. As a result of this, files encoded with earlier versions will have a slight increase in noise (typically less than 1 dB) when decoded with the newer decoder. As with the last release, you are encouraged to
2004 Aug 06
0
minor suggestions
...a problem as different alignment restrictions will cause problems. E.g. the default max alignment is 8 bytes with VC6/ VS.NET though we use 4 byte which means speex.h has to ensure that the alignment matches the alignment used to compile libspeex. The easiest approach is to do something like: #if SUPPORTS_PRAGMA_PACK #pragma pack (push,8) #endif // all struct definitions in speex.h #if SUPPORTS_PRAGMA_PACK #pragma pack (pop) #endif And then define SUPPORTS_PRAGMA_PACK for _MSC_VER, __ICL and __GNUG__ (can't remember whether it was 2.96 or 3.0 that added support for this pragma). <p>The last time I...
2004 Aug 06
2
minor suggestions
...ent restrictions will cause > problems. E.g. the default max alignment is 8 bytes with VC6/ VS.NET though > we use 4 byte which means speex.h has to ensure that the alignment matches > the alignment used to compile libspeex. The easiest approach is to do > something like: > > #if SUPPORTS_PRAGMA_PACK > #pragma pack (push,8) > #endif > > // all struct definitions in speex.h > > #if SUPPORTS_PRAGMA_PACK > #pragma pack (pop) > #endif > > And then define SUPPORTS_PRAGMA_PACK for _MSC_VER, __ICL and __GNUG__ (can't > remember whether it was 2.96 or 3.0 that ad...