skia2/gyp
digit@google.com eec9dbcace arm: First step towards dynamic NEON support.
This patch adds minimal support for dynamic ARM NEON support,
i.e. the ability to probe the CPU at runtime for NEON and
provide alternate code paths when it is available.

- Add include/core/SkUtilsArm.h, which declares a few helper
  macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy
  function 'sk_cpu_arm_has_neon()' which returns true if
  the target CPU supports the ARM NEON instruction set.

  Note that the header is in include/core/ because it will
  have to be included from NEON-specific code under src/code/

  It would probably be more logical to put it under include/opts/
  instead, but this would require moving all the NEON-specific
  stuff under src/code/ into src/opts/, which is not trivial
  due to the way the code is currently architected.

- Add src/core/SkUtilsArm.cpp which implements
  'sk_cpu_arm_has_neon' for ARM-based Linux systems, only
  when SK_NEON_ARM_IS_DYNAMIC is true.

  (For other cases, 'sk_cpu_arm_has_neon' is an inline function
   that returns a constant 'true' or 'false' value).

  There is no user-level accessible CPUID instruction on ARM,
  so do all CPU feature probing by parsing /proc/cpuinfo.
  This is Linux-specific.

  For Debug build types, the CPU probing result is printed
  to the Android log (or Linux command-line) for easier
  debugging.

- Create a new 'opts_neon' target (static library) which shall
  contain all the NEON-specific code paths for the library.

  This is necessary because -mfpu=neon impacts also non-scalar
  code. Just like with -mssse3 on x86, we can't build the rest
  of the library with this flag.

  Note that for now, we only include memset16_neon and
  memset32_neon in this library.

- Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC
  properly.

Compared to a 'xoom' build, the only difference is the use of
NEON-optimized memset16/32 functions. Later patches will move
more NEON-specific code paths to 'opts_neon'.
Review URL: https://codereview.appspot.com/6247058

git-svn-id: http://skia.googlecode.com/svn/trunk@4069 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-05-30 13:54:41 +00:00
..
all.gyp Some final cleanups leading up to The Official Switch to Gyp 2011-06-07 14:48:41 +00:00
android_system.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
angle.gyp Delivering .gyp files to enable building & linking w/ ANGLE on Windows 2012-04-02 20:42:26 +00:00
animator.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
apptype_console.gypi Stop packaging command-line Mac tools as a bundle. 2011-08-15 19:22:39 +00:00
bench.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
bench.gypi change SkChunkAlloc to grow its allocations geometrically (not linearly) 2012-05-17 14:28:11 +00:00
common_conditions.gypi arm: First step towards dynamic NEON support. 2012-05-30 13:54:41 +00:00
common_variables.gypi Delivering .gyp files to enable building & linking w/ ANGLE on Windows 2012-04-02 20:42:26 +00:00
common.gypi Delivering .gyp files to enable building & linking w/ ANGLE on Windows 2012-04-02 20:42:26 +00:00
core.gyp arm: First step towards dynamic NEON support. 2012-05-30 13:54:41 +00:00
effects.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
experimental.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
FileReaderApp.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
freetype.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
gm.gyp Converted AAClips SampleApp slide to GM:simpleaaclip 2012-05-22 12:14:50 +00:00
gmslides.gypi Converted AAClips SampleApp slide to GM:simpleaaclip 2012-05-22 12:14:50 +00:00
gpu.gyp Some refactoring of GrCustomStage and friends 2012-05-18 19:54:48 +00:00
images.gyp Redelivering r3611 changes (enabling cmyk jpeg changes in .gyps) 2012-04-05 14:52:01 +00:00
iOSSampleApp.gyp Utils must not depend on Views. 2012-03-21 20:59:49 +00:00
libjpeg.gyp Set no rtti option to avoid warnings on Android. 2012-05-11 13:29:32 +00:00
opts.gyp arm: First step towards dynamic NEON support. 2012-05-30 13:54:41 +00:00
pdf.gyp [PDF] Move most of the headers to be private. 2012-03-22 20:45:15 +00:00
ports.gyp WeakRefCnt 2012-05-16 18:21:56 +00:00
SampleApp.gyp Converted AAClips SampleApp slide to GM:simpleaaclip 2012-05-22 12:14:50 +00:00
sfnt.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
shapeops_demo.gyp shape ops builders; fix typo 2012-03-28 17:04:08 +00:00
shapeops_edge.gyp shape ops work in progress (get rid of some warnings) 2012-05-23 18:09:25 +00:00
SimpleCocoaApp.gyp Utils must not depend on Views. 2012-03-21 20:59:49 +00:00
svg.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
tests.gyp ~glyphcache_globals needs to actually delete its cache 2012-05-21 15:29:27 +00:00
tools.gyp Fix android build 2012-03-23 19:36:53 +00:00
utils.gyp Add bench and test for SkRefCnt. 2012-05-14 14:09:24 +00:00
views_animated.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
views.gyp Delivering .gyp files to enable building & linking w/ ANGLE on Windows 2012-04-02 20:42:26 +00:00
xml.gyp Revert 3538. 2012-03-29 14:51:56 +00:00
xps.gyp Fixing gm build with SkXPSDevice enabled 2012-04-03 20:20:47 +00:00
zlib.gyp Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00