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

Issue 1553035: Enable SSE2 compilation for ChromeOS.... (Closed)

Created:
10 years, 8 months ago by fbarchard
Modified:
9 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews, Sergey Ulanov, Evan Martin
Visibility:
Public.

Description

Enable SSE2 compilation for ChromeOS. In practice the <video> tag needs this for faster YUV conversion/filtering. BUG=19113 TEST=Test youtube html5 with chromeos (not chromiumos). It should not crash, and it should be faster. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44740

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M build/common.gypi View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
fbarchard
chromiumos already has sse2, but like chrome, chromeos had no options specified at all. chrome ...
10 years, 8 months ago (2010-04-15 23:01:18 UTC) #1
piman
LGTM
10 years, 8 months ago (2010-04-15 23:03:54 UTC) #2
fbarchard
Note that ChromiumOS uses '-march=pentium4', '-msse2', '-mfpmath=sse', sse2 is to allow skia to pass layout ...
10 years, 8 months ago (2010-04-15 23:26:14 UTC) #3
fbarchard
10 years, 8 months ago (2010-04-15 23:28:59 UTC) #4
Confirmed build uses the new option with make V=1
make -j6 -r media_unittests BUILDTYPE=Release V=1
 g++  -Werror -pthread -m32 -mmmx -msse2 
objdump -D out/Release/obj.target/media/media/base/yuv_convert.o

50:   f3 0f 7e 09             movq   (%ecx),%xmm1
54:   f3 0f 7e 06             movq   (%esi),%xmm0
58:   66 0f 60 ca             punpcklbw %xmm2,%xmm1
5c:   66 0f 60 c2             punpcklbw %xmm2,%xmm0
60:   66 0f d5 cc             pmullw %xmm4,%xmm1
64:   66 0f d5 c3             pmullw %xmm3,%xmm0
68:   66 0f fd c1             paddw  %xmm1,%xmm0
6c:   83 c6 08                add    $0x8,%esi
6f:   66 0f 71 d0 08          psrlw  $0x8,%xmm0
74:   83 c1 08                add    $0x8,%ecx
77:   66 0f 67 c0             packuswb %xmm0,%xmm0
7b:   66 0f d6 03             movq   %xmm0,(%ebx)
7f:   83 c3 08                add    $0x8,%ebx
82:   39 d8                   cmp    %ebx,%eax
84:   77 ca                   ja     50 <_ZN5media10FilterRowsEPhPKhS2_ii+0x50>
Mmmm good code.  Bon Appetite

Powered by Google App Engine
This is Rietveld 408576698