Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1312)

Issue 6325044: remove SSE runtime check if we know it's supported at compile time (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by Lei
Modified:
11 years, 11 months ago
Reviewers:
reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

If we know that the target platform supports SSE2 or SSSE3 at compile time, then there is no need to do dynamic check to be supported.

Patch Set 1 #

Patch Set 2 : updated patch #

Patch Set 3 : updated the patch after changing the flag from USE_SSE2 to SK_CPU_SSE_LEVEL #

Patch Set 4 : remove runtime check of SSE2 and SSE3 if we know it's supported at compile time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
src/opts/opts_check_SSE2.cpp View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 14
Lei
12 years ago (2012-06-21 08:15:02 UTC) #1
reed1
__X86_USE_SSE2 Who defines this symbol? Which compilers? I didn't see it on a quick googler ...
12 years ago (2012-06-21 17:28:24 UTC) #2
Lei
Hi reed1, sorry for the late reply. Actually the flag is USE_SSE2. We added this ...
12 years ago (2012-07-02 07:46:04 UTC) #3
Lei
updated patch
12 years ago (2012-07-02 07:58:49 UTC) #4
reed1
I just added SK_CPU_SSE_LEVEL to SkPreConfig.h. Can you use that instead (and trigger that on ...
12 years ago (2012-07-02 14:40:04 UTC) #5
Lei
No problem. I will modify the makefile (Android.mk) a little bit to trigger this flag ...
12 years ago (2012-07-03 01:53:04 UTC) #6
Lei
updated the patch after changing the flag from USE_SSE2 to SK_CPU_SSE_LEVEL
12 years ago (2012-07-03 01:53:24 UTC) #7
reed1
You need to check that the defined level is >= the level when SSE2 is ...
12 years ago (2012-07-03 12:11:52 UTC) #8
Lei
Sure. I also added SSSE3 check at compile time, and this may be beneficial on ...
12 years ago (2012-07-04 04:07:11 UTC) #9
Lei
remove runtime check of SSE2 and SSE3 if we know it's supported at compile time
12 years ago (2012-07-04 04:08:38 UTC) #10
reed1
Thanks for catching my bug in SkPreConfig.h. I have tried to fix that, and have ...
12 years ago (2012-07-09 13:03:28 UTC) #11
Lei
Hi Reed, thanks for your effort. Do I need to change anything? If it's OK, ...
11 years, 11 months ago (2012-07-16 07:43:50 UTC) #12
reed1
landed in rev. 4622. Please close this issue.
11 years, 11 months ago (2012-07-16 16:08:03 UTC) #13
Lei
11 years, 11 months ago (2012-07-17 04:05:26 UTC) #14
Thanks, reed~
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b