Skip to content

Commit 934ea0e

Browse files
committed
fix another wasm32 problem
1 parent 19edf30 commit 934ea0e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Andre Bogus <bogusandre@gmail.de>", "Joshua Landau <joshua@landau.ws
33
description = "count occurrences of a given byte, or the number of UTF-8 code points, in a byte slice, fast"
44
edition = "2018"
55
name = "bytecount"
6-
version = "0.6.6"
6+
version = "0.6.7"
77
license = "Apache-2.0/MIT"
88
repository = "https://github.com/llogiq/bytecount"
99
categories = ["algorithms", "no-std"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The [newlinebench](https://github.com/llogiq/newlinebench) repository has furthe
1212

1313
To use bytecount in your crate, if you have [cargo-edit](https://github.com/killercup/cargo-edit), just type
1414
`cargo add bytecount` in a terminal with the crate root as the current path. Otherwise you can manually edit your
15-
`Cargo.toml` to add `bytecount = 0.6.6` to your `[dependencies]` section.
15+
`Cargo.toml` to add `bytecount = 0.6.7` to your `[dependencies]` section.
1616

1717
In your crate root (`lib.rs` or `main.rs`, depending on if you are writing a
1818
library or application), add `extern crate bytecount;`. Now you can simply use

src/simd/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ unsafe fn sum(u8s: v128) -> usize {
3939
let u16s = u16x8_extadd_pairwise_u8x16(u8s);
4040
let u32s = u32x4_extadd_pairwise_u16x8(u16s);
4141
let (u1, u2, u3, u4) = (
42+
u32x4_extract_lane::<0>(u32s),
4243
u32x4_extract_lane::<1>(u32s),
4344
u32x4_extract_lane::<2>(u32s),
4445
u32x4_extract_lane::<3>(u32s),
45-
u32x4_extract_lane::<4>(u32s),
4646
);
4747
((u1 + u2) + (u3 + u4)) as usize
4848
}

0 commit comments

Comments
 (0)