|
|
1.1 ! root 1: #include "stuff/round.h" ! 2: /* ! 3: * round() rounds v to a multiple of r. ! 4: */ ! 5: long ! 6: round( ! 7: long v, ! 8: unsigned long r) ! 9: { ! 10: r--; ! 11: v += r; ! 12: v &= ~(long)r; ! 13: return(v); ! 14: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.