diff for duplicates of <200701310706.12356.arnd@arndb.de> diff --git a/a/1.txt b/N1/1.txt index 13b83be..810cb7d 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,7 +2,7 @@ On Wednesday 31 January 2007 00:31, Carl Love wrote: > Unfortunately, the only way we know how to > figure out what the LFSR value that corresponds to the number in the > sequence that is N before the last value (0xFFFFFF) is to calculate the -> previous value N times. =A0It is like trying to ask what is the pseudo +> previous value N times. It is like trying to ask what is the pseudo > random number that is N before this pseudo random number? Well, you can at least implement the lfsr both ways, and choose the one @@ -11,13 +11,13 @@ that is faster to get at, like u32 get_lfsr(u32 v) { int i; - u32 r =3D 0xffffff; + u32 r = 0xffffff; if (v < 0x7fffff) { - for (i =3D 0; i < v; i++) - r =3D lfsr_forwards(r); + for (i = 0; i < v; i++) + r = lfsr_forwards(r); } else { - for (i =3D 0; i < (0x1000000 - v); i++) - r =3D lfsr_backwards(r); + for (i = 0; i < (0x1000000 - v); i++) + r = lfsr_backwards(r); } return r; } @@ -27,7 +27,7 @@ a small lookup table with precomputed values, like: u32 get_lfsr(u32 v) { - static const lookup[256] =3D { + static const lookup[256] = { 0xab3492, 0x3e3f34, 0xc47610c, ... /* insert actual values */ }; diff --git a/a/content_digest b/N1/content_digest index f376c99..2732eec 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -5,17 +5,18 @@ "Subject\0Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for\tprofiling Cell BE SPUs -- update\0" "Date\0Wed, 31 Jan 2007 07:06:11 +0100\0" "To\0cbe-oss-dev@ozlabs.org\0" - "Cc\0linuxppc-dev@ozlabs.org" - linux-kernel@vger.kernel.org + "Cc\0Carl Love <cel@us.ibm.com>" + maynardj@us.ibm.com + linuxppc-dev@ozlabs.org oprofile-list@lists.sourceforge.net - " Carl Love <cel@us.ibm.com>\0" + " linux-kernel@vger.kernel.org\0" "\00:1\0" "b\0" "On Wednesday 31 January 2007 00:31, Carl Love wrote:\n" "> Unfortunately, the only way we know how to\n" "> figure out what the LFSR value that corresponds to the number in the\n" "> sequence that is N before the last value (0xFFFFFF) is to calculate the\n" - "> previous value N times. =A0It is like trying to ask what is the pseudo\n" + "> previous value N times. \302\240It is like trying to ask what is the pseudo\n" "> random number that is N before this pseudo random number?\n" "\n" "Well, you can at least implement the lfsr both ways, and choose the one\n" @@ -24,13 +25,13 @@ "u32 get_lfsr(u32 v)\n" "{\n" "\tint i;\n" - "\tu32 r =3D 0xffffff;\n" + "\tu32 r = 0xffffff;\n" "\tif (v < 0x7fffff) {\n" - "\t\tfor (i =3D 0; i < v; i++)\n" - "\t\t\tr =3D lfsr_forwards(r);\n" + "\t\tfor (i = 0; i < v; i++)\n" + "\t\t\tr = lfsr_forwards(r);\n" "\t} else {\n" - "\t\tfor (i =3D 0; i < (0x1000000 - v); i++)\n" - "\t\t\tr =3D lfsr_backwards(r);\n" + "\t\tfor (i = 0; i < (0x1000000 - v); i++)\n" + "\t\t\tr = lfsr_backwards(r);\n" "\t}\n" "\treturn r;\n" "}\n" @@ -40,7 +41,7 @@ "\n" "u32 get_lfsr(u32 v)\n" "{\n" - "\tstatic const lookup[256] =3D {\n" + "\tstatic const lookup[256] = {\n" "\t\t0xab3492, 0x3e3f34, 0xc47610c, ... /* insert actual values */\n" "\t};\n" "\n" @@ -49,4 +50,4 @@ "\n" "\tArnd <><" -d3333bda9b6b4fbb189ea57ce91ac36a5ba7f7af9b1cb6f9b84accc26e208837 +039fa44a785642aa89a3a19bdde91bdf1a427d106e69cea6ec38332bae9b18b9
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.