Skip to content
Permalink
Browse files

Turns out that SIMD code was not being compiled at all!?

  • Loading branch information...
SimonSapin committed Jul 1, 2019
1 parent 5a31ce5 commit d1efad676301798756c36990de8aa2784dab91db
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/gfx/text/glyph.rs
@@ -644,7 +644,7 @@ impl<'a> GlyphStore {

for i in 0..num_simd_iterations {
let offset = begin + i * 4;
let v = u32x4::load_unaligned(&buf[offset..]);
let v = u32x4::from_slice_unaligned(&buf[offset..]);
let advance = (v & advance_mask) >> GLYPH_ADVANCE_SHIFT;
let spaces = (v & space_flag_mask) >> FLAG_CHAR_IS_SPACE_SHIFT;
simd_advance = simd_advance + advance;

0 comments on commit d1efad6

Please sign in to comment.
You can’t perform that action at this time.