Skip to content

Commit 81b9fa5

Browse files
committed
fix: use write instead of intrinsic (for now)
1 parent a873c47 commit 81b9fa5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/neon/deser.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub use crate::neon::utf8check::*;
99
pub use crate::stringparse::*;
1010

1111
pub use crate::neon::intrinsics::*;
12+
use std::io::Write;
1213

1314
unsafe fn find_bs_bits_and_quote_bits(src: &[u8], dstx: Option<&mut [u8]>) -> ParseStringHelper {
1415
// this can read up to 31 bytes beyond the buffer size, but we require
@@ -17,9 +18,11 @@ unsafe fn find_bs_bits_and_quote_bits(src: &[u8], dstx: Option<&mut [u8]>) -> Pa
1718
let v1 : uint8x16_t = vld1q_u8(src.as_ptr().add(16));
1819

1920
match dstx {
20-
Some(dst) => {
21-
vst1q_u8(dst.as_mut_ptr(), v0);
22-
vst1q_u8(dst.as_mut_ptr().add(16), v1);
21+
Some(mut dst) => {
22+
// vst1q_u8(dst.as_mut_ptr(), v0);
23+
// vst1q_u8(dst.as_mut_ptr().add(16), v1);
24+
dst.write(&src[0..16]).unwrap();
25+
dst.write(&src[16..32]).unwrap();
2326
},
2427
_ => ()
2528
}

0 commit comments

Comments
 (0)