diff for duplicates of <20120830173531.291e7b6d.akpm@linux-foundation.org> diff --git a/a/1.txt b/N1/1.txt index 534c1a4..800d953 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -19,7 +19,7 @@ On Thu, 30 Aug 2012 17:10:47 -0700 Guenter Roeck <linux@roeck-us.net> 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)); \ > } \ @@ -36,8 +36,3 @@ Also, this would be a great opportunity to document the macro's beahviour (I do go on). That would be a useful thing to do, given that we're now handling the four +/+, +/-, -/+, -/- cases and the behaviour for each case isn't terribly obvious. - -_______________________________________________ -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 8a970ad..41c7170 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01346371847-21384-1-git-send-email-linux@roeck-us.net\0" "From\0Andrew Morton <akpm@linux-foundation.org>\0" - "Subject\0Re: [lm-sensors] [PATCH v3] linux/kernel.h: Fix DIV_ROUND_CLOSEST to support negative operands\0" - "Date\0Fri, 31 Aug 2012 00:35:31 +0000\0" + "Subject\0Re: [PATCH v3] linux/kernel.h: Fix DIV_ROUND_CLOSEST to support negative operands\0" + "Date\0Thu, 30 Aug 2012 17:35:31 -0700\0" "To\0Guenter Roeck <linux@roeck-us.net>\0" "Cc\0linux-kernel@vger.kernel.org" Pekka Enberg <penberg@kernel.org> @@ -32,7 +32,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" @@ -48,11 +48,6 @@ "Also, this would be a great opportunity to document the macro's beahviour\n" "(I do go on). That would be a useful thing to do, given that we're now\n" "handling the four +/+, +/-, -/+, -/- cases and the behaviour for each\n" - "case isn't terribly obvious.\n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + case isn't terribly obvious. -ee8bc6aca8c5952154392270b0b4230ab1410a002a748eddd2b3f16926a233dc +d4dc0d98be975f52951ad6ca742986770358e7cc7d511a5a607795f7dc8c1f29
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.