Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Issue 12137003: Support big-endian processors. Eliminate the dependency on the (Closed)

Created:
7 years, 10 months ago by wtc
Modified:
7 years, 10 months ago
Reviewers:
agl, Ryan Sleevi
CC:
chromium-reviews
Visibility:
Public.

Description

Support big-endian processors. Eliminate the dependency on the implementation-defined behavior of right-shifting a negative signed integer. R=agl@chromium.org,rsleevi@chromium.org BUG=172178 TEST=no build or test failures on iOS, Mac, and Windows

Patch Set 1 #

Total comments: 15

Patch Set 2 : Eliminate other signed right-shifts. Add PORT_Assert to check n digits before memcpy #

Total comments: 2

Patch Set 3 : Add the TODO(agl) back. Remove ecp_256_32.c from nss-curve-p256.patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -1494 lines) Patch
M README.chromium View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c View 1 2 7 chunks +52 lines, -16 lines 0 comments Download
M patches/nss-curve-p256.patch View 1 2 1 chunk +0 lines, -1477 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wtc
(agl: please note my last comment below about memcpy.) This should address all technical issues ...
7 years, 10 months ago (2013-01-31 22:46:05 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c File mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c (right): https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c#newcode164 mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c:164: #define NON_ZERO_TO_ALL_ONES(x) ((((x) - 1) >> 31) - 1) ...
7 years, 10 months ago (2013-01-31 22:53:37 UTC) #2
wtc
By searching for "s32" and ">> 31", I found two other places that assume right-shifting ...
7 years, 10 months ago (2013-02-01 05:28:04 UTC) #3
wtc
https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c File mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c (right): https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c#newcode1139 mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c:1139: table_offset = ((((s32)j) << (32-6)) >> 31) & (30*NLIMBS); ...
7 years, 10 months ago (2013-02-01 05:35:40 UTC) #4
agl
https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c File mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c (right): https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c#newcode1139 mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c:1139: table_offset = ((((s32)j) << (32-6)) >> 31) & (30*NLIMBS); ...
7 years, 10 months ago (2013-02-01 18:45:16 UTC) #5
wtc
Please review patch set 2. https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c File mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c (right): https://codereview.chromium.org/12137003/diff/1/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c#newcode1228 mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c:1228: select_jacobian_point(px, py, pz, (limb ...
7 years, 10 months ago (2013-02-01 19:28:35 UTC) #6
agl
LGTM https://codereview.chromium.org/12137003/diff/7001/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c File mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c (left): https://codereview.chromium.org/12137003/diff/7001/mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c#oldcode1359 mozilla/security/nss/lib/freebl/ecl/ecp_256_32.c:1359: /* FIXME(agl): test that n < order. */ ...
7 years, 10 months ago (2013-02-02 20:34:26 UTC) #7
wtc
I added the TODO(agl) comment back in patch set 3. I also removed ecp_256_32.c from ...
7 years, 10 months ago (2013-02-04 20:29:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/12137003/12001
7 years, 10 months ago (2013-02-04 20:29:55 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-02-04 20:30:08 UTC) #10
Message was sent while issue was closed.
Change committed as 180499

Powered by Google App Engine
This is Rietveld 408576698