Skip to content

Commit

Permalink
do not inline or_ function
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Jul 26, 2024
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;");
}
Expand Down

0 comments on commit c0d82ef

Please sign in to comment.