Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
be clearer that lsb/msb look for 1 bits
  • Loading branch information
TimToady committed May 29, 2013
1 parent 4f0895b commit 617f456
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions S32-setting-library/Numeric.pod
Expand Up @@ -19,7 +19,7 @@ DRAFT: Synopsis 32: Setting Library - Numeric

Created: 19 Mar 2009 extracted from S29-functions.pod

Last Modified: 29 Sept 2013
Last Modified: 29 May 2013
Version: 17

The document is a draft.
Expand Down Expand Up @@ -496,13 +496,16 @@ Returns False if C<$x> is known not to be a prime.

multi method lsb ( Int $x: ) is export

Returns the least significant bit position, where 0 is where the 1 bit is, 1 is where the 2 bit is, and so on.
Returns the least significant bit position containing a 1 bit, counting
bit positions from least significant to most significant. (In other
words, it's the base 2 logarithm of number represented by that 1 bit.)

=item msb

multi method msb ( Int $x: ) is export

Returns the most significant bit position, that is, the base 2 log of the top bit.
Returns the most significant bit position containing a 1 bit, that is,
the base 2 logarithm of the top 1 bit.

=back

Expand Down

0 comments on commit 617f456

Please sign in to comment.