Changeset 13607 in project


Ignore:
Timestamp:
03/09/09 04:25:17 (11 years ago)
Author:
Kon Lovett
Message:

Save.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/err5rs-arithmetic

    r13603 r13607  
    463463<procedure>(bitwise-if MASK TRUE FALSE) => INTEGER</procedure>
    464464
    465 Merge under mask.
    466 
    467465==== bitwise-test?
    468466
    469467<procedure>(bitwise-test? VALUE1 VALUE2) => BOOLEAN</procedure>
    470468
    471 Any bits set in both {{VALUE1}} and {{VALUE2}}?
    472 
    473469==== bitwise-bit-count
    474470
    475471<procedure>(bitwise-bit-count VALUE) => INTEGER</procedure>
    476472
    477 Count of set bits.
    478 
    479473==== bitwise-length
    480474
    481475<procedure>(bitwise-length VALUE) => INTEGER</procedure>
    482476
    483 Minimum number of bits to represent.
    484 
    485477==== bitwise-first-bit-set
    486478
    487479<procedure>(bitwise-first-bit-set VALUE) => INTEGER</procedure>
    488480
    489 Least significant bit set.
    490 
    491481==== bitwise-last-bit-set
    492482
    493483<procedure>(bitwise-last-bit-set VALUE) => INTEGER</procedure>
    494484
    495 Most significant bit set.
    496 
    497485==== bitwise-bit-set?
    498486
    499487<procedure>(bitwise-bit-set? VALUE INDEX) => BOOLEAN</procedure>
    500488
    501 Specific bit set?
    502 
    503489==== bitwise-copy-bit
    504490
    505491<procedure>(bitwise-copy-bit TO START BIT) => INTEGER</procedure>
    506492
    507 Set bit.
    508 
    509493==== bitwise-bit-field
    510494
    511495<procedure>(bitwise-bit-field VALUE START END) => INTEGER</procedure>
    512496
    513 Get bits.
    514 
    515497==== bitwise-copy-bit-field
    516498
    517499<procedure>(bitwise-copy-bit-field TO START END FROM) => INTEGER</procedure>
    518500
    519 Set bits.
    520 
    521501==== bitwise-rotate-bit-field
    522502
    523503<procedure>(bitwise-rotate-bit-field VALUE START END COUNT) => INTEGER</procedure>
    524504
    525 Rotate bits.
    526 
    527505==== bitwise-reverse
    528506
    529507<procedure>(bitwise-reverse VALUE COUNT) => INTEGER</procedure>
    530508
    531 Reverse low-order bits.
    532 
    533509==== bitwise-reverse-bit-field
    534510
    535511<procedure>(bitwise-reverse-bit-field VALUE START END) => INTEGER</procedure>
    536512
    537 Reverse bits.
    538 
    539513==== bitwise-list->integer
    540514
    541515<procedure>(bitwise-list->integer LIST) => INTEGER</procedure>
    542516
    543 Converts list of boolean, least-significant to most-significant, to integer.
    544 
    545517==== bitwise-integer->list
    546518
    547519<procedure>(bitwise-integer->list VALUE [LENGTH]) => LIST</procedure>
    548520
    549 Converts integer to list of boolean, least-significant to most-significant.
    550 
    551521==== bitwise-arithmetic-shift
    552522
     
    573543<procedure>(pow2log2 VALUE) => INTEGER</procedure>
    574544
    575 Returns  {{2 * log2 ({{VALUE}})) .
     545Returns {{(* 2 (log2 VALUE))}}, but more efficient.
    576546
    577547===== boolean->bit
     
    579549<procedure>(boolean->bit OBJECT) => INTEGER</procedure>
    580550
    581 Returns {{0}} for false or zero and {{1}} otherwise.
     551Returns {{0}} for {{#f}} or {{0}} and {{1}} otherwise.
    582552
    583553==== Unchecked variants
    584554
    585 These procedures have the same signature as the argument checked versions but
     555These procedures have the same signature as the similarly named ones but
    586556perform no argument checking.
    587557
     
    678648== Version history
    679649
    680 ; 1.0.0 :
     650; 1.0.0 : Chicken 4 release.
    681651
    682652
Note: See TracChangeset for help on using the changeset viewer.