Skip to content

Commit

Permalink
Avoid using C++ inline asm when TI_EMSCRIPTENED
Browse files Browse the repository at this point in the history
  • Loading branch information
AmesingFlank committed Jan 25, 2022
1 parent 92408e9 commit 7a07c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/program/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Program::Program(Arch desired_arch)
// backends (including CPUs).
#if defined(TI_ARCH_x64)
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
#else
#elif !defined(TI_EMSCRIPTENED)
// Enforce flush to zero on arm64 CPUs
// https://developer.arm.com/documentation/100403/0201/register-descriptions/advanced-simd-and-floating-point-registers/aarch64-register-descriptions/fpcr--floating-point-control-register?lang=en
std::uint64_t fpcr;
Expand Down

0 comments on commit 7a07c28

Please sign in to comment.