Messages in this thread |  | | Date | Mon, 10 Mar 2008 17:44:07 +0100 | From | Pavel Machek <> | Subject | Re: [GIT pull] time(r) fixes for .25 |
| |
> @@ -174,6 +174,10 @@ static inline void timespec_add_ns(struct timespec *a, u64 ns) > { > ns += a->tv_nsec; > while(unlikely(ns >= NSEC_PER_SEC)) { > + /* The following asm() prevents the compiler from > + * optimising this loop into a modulo operation. */ > + asm("" : "+r"(ns)); > +
optimizing -> pessimizing or "optimizing" or explain that "optimized" version is slower than real version?
Missing space between while and ( ?
Pavel
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
|  |