1 #ifndef INTERSECTIONS_HPP_ 2 #define INTERSECTIONS_HPP_ 3 4 5 /* 6 * Structure for the intersection between an interval [i0..i1[ and 7 * two consecutives fences. 8 */ 9 10 /* This internal routine is used only in the case where the row and 11 * column permutations are equal. 12 */ 13 14 /* Computes the intersection of [i0..i1[ with the fences ; we clamp the 15 * interval [i0..i1[ to the maximum value nmax, which must correspond to 16 * the last defined fence. 17 */ 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 unsigned int intersect_two_intervals(unsigned int * offset_a, unsigned int * offset_b, unsigned int a0, unsigned int a1, unsigned int b0, unsigned int b1); 23 24 /* 25 void intersect(unsigned int * plen, struct isect_info ** res, unsigned int * fences, unsigned int i0, unsigned int i1, unsigned int nmax); 26 */ 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif /* INTERSECTIONS_HPP_ */ 33