/* returns true, if x >= y (mod 1 << 32) */ static bool nvhost_syncpt_wrapping_comparison(u32 x, u32 y) { return nvhost_syncpt_is_between(y, x, (1UL<<31UL)+y); }
/* returns true, if syncpt >= threshold (mod 1 << 32) */ static bool nvhost_syncpt_wrapping_comparison(u32 syncpt, u32 threshold) { return nvhost_syncpt_is_between(threshold, syncpt, (1UL<<31UL)+threshold); }