Skip to content

Commit

Permalink
Turns out that SIMD code was not being compiled at all!?
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jul 1, 2019
1 parent 5a31ce5 commit d1efad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/gfx/text/glyph.rs
Expand Up @@ -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;
Expand Down

0 comments on commit d1efad6

Please sign in to comment.