| 62 | } |
| 63 | |
| 64 | void |
| 65 | Pointer::inc( Pointer &ptr ) |
| 66 | { |
| 67 | #ifdef JVEC_MACHINE |
| 68 | ptr.a = ( ptr.a + 1 ) % ptr.max_cap; |
| 69 | ptr.b = ( ptr.b + 1 ) % ptr.max_cap; |
| 70 | if( ptr.b == 0 ) |
| 71 | { |
| 72 | ptr.wrap_a++; |
| 73 | ptr.wrap_b++; |
| 74 | } |
| 75 | #else |
| 76 | ptr.a = ( ptr.a + 1 ) % ptr.max_cap; |
| 77 | if( ptr.a == 0 ) |
| 78 | { |
| 79 | ptr.wrap_a++; |
| 80 | } |
| 81 | #endif |
| 82 | } |
| 83 | |
| 84 | void |
| 85 | Pointer::incBy( Pointer &ptr, |
nothing calls this directly
no outgoing calls
no test coverage detected