diff for duplicates of <20120831011216.GA22010@roeck-us.net> diff --git a/a/1.txt b/N1/1.txt index c3233f6..158d8ad 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -20,7 +20,7 @@ On Thu, Aug 30, 2012 at 05:35:31PM -0700, Andrew Morton wrote: > > - (((x) + ((__divisor) / 2)) / (__divisor)); \ > > + typeof(x) __x = x; \ > > + typeof(divisor) __d = divisor; \ -> > + ((__x) < 0) = ((__d) < 0) ? \ +> > + ((__x) < 0) == ((__d) < 0) ? \ > > + (((__x) + ((__d) / 2)) / (__d)) : \ > > + (((__x) - ((__d) / 2)) / (__d)); \ > > } \ @@ -48,8 +48,3 @@ negative divisors are just too odd to deal with. Commentss welcome ... Ok. Guenter - -_______________________________________________ -lm-sensors mailing list -lm-sensors@lm-sensors.org -http://lists.lm-sensors.org/mailman/listinfo/lm-sensors diff --git a/a/content_digest b/N1/content_digest index eac823d..254ee34 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,8 @@ "ref\01346371847-21384-1-git-send-email-linux@roeck-us.net\0" "ref\020120830173531.291e7b6d.akpm@linux-foundation.org\0" "From\0Guenter Roeck <linux@roeck-us.net>\0" - "Subject\0Re: [lm-sensors] [PATCH v3] linux/kernel.h: Fix DIV_ROUND_CLOSEST to support negative operands\0" - "Date\0Fri, 31 Aug 2012 01:12:16 +0000\0" + "Subject\0Re: [PATCH v3] linux/kernel.h: Fix DIV_ROUND_CLOSEST to support negative operands\0" + "Date\0Thu, 30 Aug 2012 18:12:16 -0700\0" "To\0Andrew Morton <akpm@linux-foundation.org>\0" "Cc\0linux-kernel@vger.kernel.org" Pekka Enberg <penberg@kernel.org> @@ -34,7 +34,7 @@ "> > -\t(((x) + ((__divisor) / 2)) / (__divisor));\t\\\n" "> > +\ttypeof(x) __x = x;\t\t\t\t\\\n" "> > +\ttypeof(divisor) __d = divisor;\t\t\t\\\n" - "> > +\t((__x) < 0) = ((__d) < 0) ?\t\t\t\\\n" + "> > +\t((__x) < 0) == ((__d) < 0) ?\t\t\t\\\n" "> > +\t\t(((__x) + ((__d) / 2)) / (__d)) :\t\\\n" "> > +\t\t(((__x) - ((__d) / 2)) / (__d));\t\\\n" "> > }\t\t\t\t\t\t\t\\\n" @@ -61,11 +61,6 @@ "> \n" "Ok.\n" "\n" - "Guenter\n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + Guenter -345706c3e6d06c6c9da79e28e2ee78ca77487b6e3f538e7149bef0e7c2d4880f +aae0bce91298a0c2b4fe2f3179d23ae7f727bb482b46992407bf5f72489f323b
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.