ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.pod
(Generate patch)

Comparing libecb/ecb.pod (file contents):
Revision 1.33 by root, Fri Jun 17 18:46:19 2011 UTC vs.
Revision 1.34 by root, Fri Jun 17 21:16:12 2011 UTC

430 430
431=item uint32_t ecb_bswap16 (uint32_t x) 431=item uint32_t ecb_bswap16 (uint32_t x)
432 432
433=item uint32_t ecb_bswap32 (uint32_t x) 433=item uint32_t ecb_bswap32 (uint32_t x)
434 434
435=item uint64_t ecb_bswap64 (uint64_t x)
436
435These two functions return the value of the 16-bit (32-bit) value C<x> 437These functions return the value of the 16-bit (32-bit, 64-bit) value
436after reversing the order of bytes (0x11223344 becomes 0x44332211). 438C<x> after reversing the order of bytes (0x11223344 becomes 0x44332211 in
439C<ecb_bswap32>).
440
441=item uint8_t ecb_rotl8 (uint8_t x, unsigned int count)
442
443=item uint16_t ecb_rotl16 (uint16_t x, unsigned int count)
444
445=item uint32_t ecb_rotl32 (uint32_t x, unsigned int count)
446
447=item uint64_t ecb_rotl64 (uint64_t x, unsigned int count)
448
449=item uint8_t ecb_rotr8 (uint8_t x, unsigned int count)
450
451=item uint16_t ecb_rotr16 (uint16_t x, unsigned int count)
437 452
438=item uint32_t ecb_rotr32 (uint32_t x, unsigned int count) 453=item uint32_t ecb_rotr32 (uint32_t x, unsigned int count)
439 454
440=item uint32_t ecb_rotl32 (uint32_t x, unsigned int count)
441
442=item uint64_t ecb_rotr64 (uint64_t x, unsigned int count) 455=item uint64_t ecb_rotr64 (uint64_t x, unsigned int count)
443 456
444=item uint64_t ecb_rotl64 (uint64_t x, unsigned int count)
445
446These two functions return the value of C<x> after rotating all the bits 457These two families of functions return the value of C<x> after rotating
447by C<count> positions to the right or left respectively. 458all the bits by C<count> positions to the right (C<ecb_rotr>) or left
459(C<ecb_rotl>).
448 460
449Current GCC versions understand these functions and usually compile them 461Current GCC versions understand these functions and usually compile them
450to "optimal" code (e.g. a single C<roll> on x86). 462to "optimal" code (e.g. a single C<rol> or a combination of C<shld> on
463x86).
451 464
452=back 465=back
453 466
454=head2 ARITHMETIC 467=head2 ARITHMETIC
455 468

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines