… | |
… | |
521 | change direction for negative values: |
521 | change direction for negative values: |
522 | |
522 | |
523 | for (m = -100; m <= 100; ++m) |
523 | for (m = -100; m <= 100; ++m) |
524 | int elem = myarray [ecb_mod (m, ecb_array_length (myarray))]; |
524 | int elem = myarray [ecb_mod (m, ecb_array_length (myarray))]; |
525 | |
525 | |
|
|
526 | =item x = ecb_div_rd (val, div) |
|
|
527 | |
|
|
528 | =item x = ecb_div_ru (val, div) |
|
|
529 | |
|
|
530 | Returns C<val> divided by C<div> rounded down or up, respectively. |
|
|
531 | C<val> and C<div> must have integer types and C<div> must be strictly |
|
|
532 | positive. |
|
|
533 | |
526 | =back |
534 | =back |
527 | |
535 | |
528 | =head2 UTILITY |
536 | =head2 UTILITY |
529 | |
537 | |
530 | =over 4 |
538 | =over 4 |