diff options
author | mtklein <mtklein@chromium.org> | 2016-07-07 08:12:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-07 08:12:09 -0700 |
commit | e5fb9c8079c7838aafe38c9a47ef1e87d77dc56f (patch) | |
tree | 1115e9de5c5274a3801061ab4dea96d08753b4e5 /include/core | |
parent | 75d2bfceaec7216414a7eb527807f2acac5cfd08 (diff) |
centralize VECTORCALL as SK_VECTORCALL
Gonna start using this, might as well define it once centrally.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2126253002
No public API changes.
TBR=reed@google.com
Review-Url: https://codereview.chromium.org/2126253002
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPostConfig.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index 9cae12fdf4..b1965bab21 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -78,6 +78,14 @@ #endif #endif +#if defined(_MSC_VER) && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 + #define SK_VECTORCALL __vectorcall +#elif defined(SK_CPU_ARM32) && defined(SK_ARM_HAS_NEON) + #define SK_VECTORCALL __attribute__((pcs("aapcs-vfp"))) +#else + #define SK_VECTORCALL +#endif + #if !defined(SK_SUPPORT_GPU) # define SK_SUPPORT_GPU 1 #endif |