|
@@ -15,6 +15,12 @@ unsigned cmPrevOddU( unsigned v );
|
15
|
15
|
unsigned cmNextEvenU( unsigned v );
|
16
|
16
|
unsigned cmPrevEvenU( unsigned v );
|
17
|
17
|
|
|
18
|
+/// Increment or decrement 'idx' by 'delta' always wrapping the result into the range
|
|
19
|
+/// 0 to (maxN-1).
|
|
20
|
+/// 'idx': initial value
|
|
21
|
+/// 'delta': incremental amount
|
|
22
|
+/// 'maxN' - 1 : maximum return value.
|
|
23
|
+unsigned cmModIncr(int idx, int delta, int maxN );
|
18
|
24
|
|
19
|
25
|
// modified bessel function of first kind, order 0
|
20
|
26
|
// ref: orfandis appendix B io.m
|