stage2 更多的工具函数 stage1支持更多的内置函数

This commit is contained in:
zzy committed 2026-09-17 18:47:56 +08:00
1 parent 1a6df012cd
commit b8e2bba140
10 files changed
+1713 -7

No files matched your search

+3 -1
View File
@@ -2,6 +2,8 @@
static const spl_intrin_info_t g_intrin_table[] = {
[SPL_INTRIN_NONE] = {0},
[SPL_INTRIN_BITSIZEOF] = {"@bitsizeof", SPL_INTRIN_BITSIZEOF, SPL_INTRIN_FORM_CALL, 1, 1,
SPL_INTRIN_RESULT_USIZE},
[SPL_INTRIN_SIZEOF] = {"@sizeof", SPL_INTRIN_SIZEOF, SPL_INTRIN_FORM_CALL, 1, 1,
SPL_INTRIN_RESULT_USIZE},
[SPL_INTRIN_ALIGNOF] = {"@alignof", SPL_INTRIN_ALIGNOF, SPL_INTRIN_FORM_CALL, 1, 1,
@@ -96,4 +98,4 @@ spl_intrin_t spl_intrin_lookup_cast(spl_type_t *type, spl_type_id_t ft, spl_type
/* int float 刻意不在这里:只能通过显式 builtin 调用。 */
return SPL_INTRIN_NONE;
}
}