[cfe-dev] patch for generalizing stdint for n-bit bytes

Ken Dyck Ken.Dyck at onsemi.com
Mon Oct 19 11:30:09 PDT 2009


On Saturday, October 17, 2009 8:17 PM, Ray wrote:
> This patch generalizes some of the defines produced by the 
> preprocessor in preparation for future patches to support of 
> n-bit bytes.

Specifically, it adds support to stdint.h for all mutiple-of-8 integer
widths up to 64 bits, where it previously only supported 8-, 16-, 32-
and 64-bit widths.

> Some other highlights include the addition of 40 new test 
> cases that help better validate the preprocessor and target 
> defines.  It also gets rid of std::vector<char> in favor of 
> llvm::raw_ostream to create defines.

If it helps, I'd be happy to separate the new test cases and the
raw_ostream conversion into separate patches. 

-Ken




More information about the cfe-dev mailing list