Skip to content

Commit

Permalink
fix: disable NEON via environment variable
Browse files Browse the repository at this point in the history
This commit adds a new static variable to allow disabling NEON on ARM CPUs using the isa flag `-neon`.

Signed-off-by: Kaiyao Duan <[email protected]>
  • Loading branch information
inspireMeNow committed Sep 9, 2024
1 parent 5237a3c commit 4ba3a7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1907,6 +1907,7 @@ static int is_cpu_arm_svei8mm_disabled = get_isa_env("-svei8mm");
static int is_cpu_arm_svef32mm_disabled = get_isa_env("-svef32mm");
static int is_cpu_arm_edsp_disabled = get_isa_env("-edsp");
static int is_cpu_arm_vfpv4_disabled = get_isa_env("-vfpv4");
static int is_cpu_arm_neon_disabled = get_isa_env("-neon");
#endif

// the initialization
Expand Down

0 comments on commit 4ba3a7c

Please sign in to comment.