support ISO extension popcount/1

This commit is contained in:
Vítor Manuel de Morais Santos Costa
2009-10-20 10:03:10 +01:00
parent 90d8b42a85
commit 54465b08f1
3 changed files with 47 additions and 2 deletions

View File

@@ -3900,10 +3900,14 @@ Integer bitwise negation.
The greatest common divisor of the two integers @var{X} and @var{Y}.
@item msb(@var{X})
The most significant bit of the positive integer @var{X}.
The most significant bit of the non-negative integer @var{X}.
@item lsb(@var{X})
The least significant bit of the positive integer @var{X}.
The least significant bit of the non-negative integer @var{X}.
@item popcount(@var{X})
The number of bits set to @code{1} in the binary representation of the
non-negative integer @var{X}.
@item [@var{X}]
Evaluates to @var{X} for expression @var{X}. Useful because character