fix wasm build
This commit is contained in:
parent
be4e9232cc
commit
0ab8cf1835
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ use std::io::Write;
|
||||||
use ringbuf::{Consumer, Producer};
|
use ringbuf::{Consumer, Producer};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
use core::arch::x86_64::{
|
use core::arch::x86_64::{
|
||||||
_MM_FLUSH_ZERO_ON,
|
_MM_FLUSH_ZERO_ON,
|
||||||
// _MM_FLUSH_ZERO_OFF,
|
// _MM_FLUSH_ZERO_OFF,
|
||||||
|
@ -325,6 +326,7 @@ impl NodeExecutor {
|
||||||
GraphMessage::NewProg { prog, copy_old_out } => {
|
GraphMessage::NewProg { prog, copy_old_out } => {
|
||||||
let mut prev_prog = std::mem::replace(&mut self.prog, prog);
|
let mut prev_prog = std::mem::replace(&mut self.prog, prog);
|
||||||
|
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
unsafe {
|
unsafe {
|
||||||
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue