aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/lib.rs
diff options
context:
space:
mode:
authorBryan Bell <bryan.w.bell@gmail.com>2015-09-02 21:18:52 -0700
committerBryan Bell <bryan.w.bell@gmail.com>2015-09-09 15:20:20 -0700
commit0c99b7e6a9cde248f66637c4d7c8ce8b51ce5c14 (patch)
treec1dd3b831640ffdd8140b7959228450f06377caf /components/gfx/lib.rs
parent366d4a83f1448e115cf998cc6c4e8c564773da65 (diff)
downloadservo-0c99b7e6a9cde248f66637c4d7c8ce8b51ce5c14.tar.gz
servo-0c99b7e6a9cde248f66637c4d7c8ce8b51ce5c14.zip
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.
Diffstat (limited to 'components/gfx/lib.rs')
-rw-r--r--components/gfx/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs
index db73b9b200d..a549258d2b3 100644
--- a/components/gfx/lib.rs
+++ b/components/gfx/lib.rs
@@ -5,6 +5,10 @@
#![feature(arc_weak)]
#![cfg_attr(any(target_os = "linux", target_os = "android"), feature(box_raw))]
#![feature(box_syntax)]
+
+// For simd (currently x86_64/aarch64)
+#![cfg_attr(any(target_arch = "x86_64", target_arch = "aarch64"), feature(convert))]
+
#![feature(custom_attribute)]
#![feature(custom_derive)]
#![feature(hashmap_hasher)]
@@ -40,6 +44,10 @@ extern crate net_traits;
extern crate util;
extern crate msg;
extern crate rand;
+
+#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
+extern crate simd;
+
extern crate smallvec;
extern crate string_cache;
extern crate style;