[cfe-dev] Possible Typo in Language Reference Documentation
Rafael Stahl via cfe-dev
cfe-dev at lists.llvm.org
Tue May 28 00:12:42 PDT 2019
Hi,
a 32 bit integer has 32 bits, not 2^32 bits. In the doc at the top you
can see the definition of MAX_INT_BITS is (1<<24)-1:
https://llvm.org/doxygen/classllvm_1_1IntegerType.html
So it seems like 23 is still the wrong number. And it should be "about
16 million" as also described here:
https://llvm.org/doxygen/classllvm_1_1IntegerType.html#aae37e53dd685a3f393852f81ebb17ed8
Seems like it was changed here, without updating documentation:
https://github.com/llvm-mirror/llvm/commit/61e54f80bc81c3c51789a158ba7ab238c4b89e5e
Rafael
On 28.05.19 02:53, nick via cfe-dev wrote:
> Greetings,
> Don't know if this is a typo:
> Any bit width from 1 bit to 2 power(23) -1 (about 8 million) can be specified.
>
> on the page https://llvm.org/docs/LangRef.html for language reference
> for the Integer Type sub section of Single Value Types as the sub section
> to be written for 32 bit integer values so it should be 2 to the power of 32
> not 23.
>
> Thanks,
>
> Nick
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list