Add intrinsics.x86_cpuid and intrinsics.x86_xgetbv

This commit is contained in:
gingerBill
2022-05-28 15:41:11 +01:00
parent 618d3bf62f
commit d7eaf0f87b
6 changed files with 124 additions and 21 deletions
+9
View File
@@ -629,6 +629,15 @@ bool is_arch_wasm(void) {
return false;
}
bool is_arch_x86(void) {
switch (build_context.metrics.arch) {
case TargetArch_i386:
case TargetArch_amd64:
return true;
}
return false;
}
bool allow_check_foreign_filepath(void) {
switch (build_context.metrics.arch) {
case TargetArch_wasm32: