equal
deleted
inserted
replaced
98 do { if (!(x)) {DEBUGPRINT("NKTEST: " s, a, b, c, d); DEBUGPRINT("Line %d File %s", __LINE__, __FILE__);}} while(0) |
98 do { if (!(x)) {DEBUGPRINT("NKTEST: " s, a, b, c, d); DEBUGPRINT("Line %d File %s", __LINE__, __FILE__);}} while(0) |
99 |
99 |
100 #define TEST_OOM(p) TEST_RESULT(p, "Out of memory"); |
100 #define TEST_OOM(p) TEST_RESULT(p, "Out of memory"); |
101 |
101 |
102 #define RANGE_CHECK(l,x,h) ((l)<=(x) && (x)<=(h)) |
102 #define RANGE_CHECK(l,x,h) ((l)<=(x) && (x)<=(h)) |
|
103 #define RANGE_LQ(x,h) ((x)<=(h)) |
103 |
104 |
104 #ifdef __SMP__ |
105 #ifdef __SMP__ |
105 #define for_each_cpu(cpu) \ |
106 #define for_each_cpu(cpu) \ |
106 for((cpu)=0; (cpu)<NKern::NumberOfCpus(); ++(cpu)) |
107 for((cpu)=0; (cpu)<NKern::NumberOfCpus(); ++(cpu)) |
107 #else |
108 #else |