Add fast SIMD code path in advance_for_char_range

In advance_for_char_range add a SIMD code path for the the common
case of no detailed glyphs.

- gfx/Cargo.toml
  Add simd dependency https://github.com/huonw/simd

- servo/Cargo.lock
  Add simd dependency https://github.com/huonw/simd @
  d9ad79d86eab50a8f36d45fe17aa9e3a533389ee.

- SIMD isn't used on non-x86_65/aarch64 architectures.
This commit is contained in:
Bryan Bell 2015-09-02 21:18:52 -07:00
parent 366d4a83f1
commit 0c99b7e6a9
4 changed files with 94 additions and 1 deletions

View file

@ -570,6 +570,7 @@ dependencies = [
"script_traits 0.0.1",
"serde 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_macros 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
"simd 0.1.0 (git+https://github.com/huonw/simd)",
"skia 0.0.20130412 (git+https://github.com/servo/skia)",
"smallvec 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
"string_cache 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1497,6 +1498,11 @@ dependencies = [
"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "simd"
version = "0.1.0"
source = "git+https://github.com/huonw/simd#d9ad79d86eab50a8f36d45fe17aa9e3a533389ee"
[[package]]
name = "skia"
version = "0.0.20130412"