Spiros Bousbouras
2017-07-19 20:47:28 UTC
Several pages in CLHS say that certain functions behave as if integers
are in "two's-complement binary representation". Such pages are for
LOGCOUNT , LOGTEST , ASH and more.
Since integers in Common Lisp do not have a fixed width , I don't know
what two's-complement representation means. For example which number is
represented by the bit pattern 1000 0000 0000 0001 ? If I know that
integers have width of 16 bits then the number is -(2^15) + 1 = -32767 .
If they have width greater than 16 bits then it's 2^15 + 1 = 32769 .
In Common Lisp I don't know.
are in "two's-complement binary representation". Such pages are for
LOGCOUNT , LOGTEST , ASH and more.
Since integers in Common Lisp do not have a fixed width , I don't know
what two's-complement representation means. For example which number is
represented by the bit pattern 1000 0000 0000 0001 ? If I know that
integers have width of 16 bits then the number is -(2^15) + 1 = -32767 .
If they have width greater than 16 bits then it's 2^15 + 1 = 32769 .
In Common Lisp I don't know.
--
And the old OED was prescriptive, not descriptive like modern, craven compilations.
"Baskerville"
www.amazon.co.uk/gp/customer-reviews/R27GBXQMK0VO02
And the old OED was prescriptive, not descriptive like modern, craven compilations.
"Baskerville"
www.amazon.co.uk/gp/customer-reviews/R27GBXQMK0VO02