Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not inline or_ function
Browse files Browse the repository at this point in the history
zapashcanon committed Jul 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a95648b commit c0d82ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libc/src/test-comp.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#include <owi.h>

inline __attribute__((always_inline)) int or_(int a, int b) {
static __attribute__((noinline)) _Bool or_(_Bool a, _Bool b) {
__asm__ __volatile__("local.get 0;"
"i32.const 0;"
"i32.ne;"
"local.get 1;"
"i32.const 0;"
"i32.ne;"
"i32.or;"
"return;");
}

0 comments on commit c0d82ef

Please sign in to comment.