On Wed, 11 Mar 2009, john stultz wrote: > Maybe a different way of expressing what we're calculating is the > following: > > xtime.tv_nsec = (clock->xtime_nsec + (1<<clock->shift)) >> clock->shift > clock->xtime_nsec = (1<<clock->shift) > - (clock->xtime_nsec &((1<<clock->shift)-1) > > In other words: The rounded up portion - the masked remainder in > xtime_nsec. > > Does that make sense? Yes, now that my brain works again. I knew I was missing something. You are definitely right: math _is_ hard :) tglx -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html