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

Issue 1412793006: write to cpu_flags once (Closed)

Created:
5 years, 2 months ago by fbarchard1
Modified:
5 years, 2 months ago
Base URL:
https://chromium.googlesource.com/libyuv/libyuv@master
Target Ref:
refs/heads/master
Project:
libyuv
Visibility:
Public.

Description

write to cpu_flags once To make init cpu flags thread safe, there can only be one write to the variable. R=richard.winterton@intel.com, harryjin@google.com BUG=libyuv:508 Committed: https://chromium.googlesource.com/libyuv/libyuv/+/9be6d21ae726f66bc96502c2498866d41dcce629

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix indent caused by change of variable name #

Patch Set 3 : add a comment about thread safety #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -32 lines) Patch
M README.chromium View 1 chunk +1 line, -1 line 0 comments Download
M include/libyuv/version.h View 1 chunk +1 line, -1 line 0 comments Download
M source/cpu_id.cc View 1 3 chunks +31 lines, -30 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
fbarchard1
5 years, 2 months ago (2015-10-20 17:37:29 UTC) #1
richard.winterton
On 2015/10/20 17:37:29, fbarchard1 wrote: So I am not sure how this is used for ...
5 years, 2 months ago (2015-10-20 21:02:23 UTC) #2
fbarchard1
https://codereview.chromium.org/1412793006/diff/1/source/cpu_id.cc File source/cpu_id.cc (right): https://codereview.chromium.org/1412793006/diff/1/source/cpu_id.cc#newcode210 source/cpu_id.cc:210: cpu_info = ((cpu_info1[3] & 0x04000000) ? kCpuHasSSE2 : 0) ...
5 years, 2 months ago (2015-10-20 21:52:20 UTC) #3
fbarchard1
ebx needs to be preserved in the assembly block with gcc with fpic. It needs ...
5 years, 2 months ago (2015-10-20 22:10:14 UTC) #5
richard.winterton
On 2015/10/20 22:10:14, fbarchard1 wrote: > ebx needs to be preserved in the assembly block ...
5 years, 2 months ago (2015-10-20 22:57:23 UTC) #6
fbarchard1
5 years, 2 months ago (2015-10-20 23:24:04 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
9be6d21ae726f66bc96502c2498866d41dcce629 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698