Clarify math.bitwise -vs- bitwise-arithmetic docs

db4
Slava Pestov 2008-11-19 19:23:11 -06:00
parent ae2f5e5439
commit 3d8f432856
2 changed files with 4 additions and 2 deletions

View File

@ -310,8 +310,9 @@ ARTICLE: "math-bitfields" "Constructing bit fields"
"Some applications, such as binary communication protocols and assemblers, need to construct integers from elaborate bit field specifications. Hand-coding this using " { $link shift } " and " { $link bitor } " results in repetitive code. A higher-level facility exists to factor out this repetition:" "Some applications, such as binary communication protocols and assemblers, need to construct integers from elaborate bit field specifications. Hand-coding this using " { $link shift } " and " { $link bitor } " results in repetitive code. A higher-level facility exists to factor out this repetition:"
{ $subsection bitfield } ; { $subsection bitfield } ;
ARTICLE: "math.bitwise" "Bitwise arithmetic" ARTICLE: "math.bitwise" "Additional bitwise arithmetic"
"The " { $vocab-link "math.bitwise" } " vocabulary can implements bitwise arithmetic words that are useful for efficiency, low-level programming, and interfacing with C libraries." $nl "The " { $vocab-link "math.bitwise" } " vocabulary provides bitwise arithmetic words extending " { $link "bitwise-arithmetic" } ". They are useful for efficiency, low-level programming, and interfacing with C libraries."
$nl
"Setting and clearing bits:" "Setting and clearing bits:"
{ $subsection set-bit } { $subsection set-bit }
{ $subsection clear-bit } { $subsection clear-bit }

View File

@ -348,6 +348,7 @@ ARTICLE: "bitwise-arithmetic" "Bitwise arithmetic"
{ $subsection 2/ } { $subsection 2/ }
{ $subsection 2^ } { $subsection 2^ }
{ $subsection bit? } { $subsection bit? }
"The " { $vocab-link "math.bitwise" } " vocabulary implements additional bitwise integer operations."
{ $see-also "conditionals" } ; { $see-also "conditionals" } ;
ARTICLE: "arithmetic" "Arithmetic" ARTICLE: "arithmetic" "Arithmetic"