Skip to content

Commit

Permalink
inline is unnecessary and might break #define inline
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kalinichenko committed Dec 26, 2024
1 parent cc815f8 commit e802be6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/caml/mlvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ typedef opcode_t * code_t;
Caml_inline int Is_block(value x) {
int result;
value never_used;
__asm__ inline (
__asm__ (
"tzcnt %2, %1"
: "=@cca" (result), "=r" (never_used)
: "r" (x)
Expand All @@ -109,7 +109,7 @@ Caml_inline int Is_block(value x) {
Caml_inline int Is_long(value x) {
int result;
value never_used;
__asm__ inline (
__asm__ (
"tzcnt %2, %1"
: "=@ccbe" (result), "=r" (never_used)
: "r" (x)
Expand Down
4 changes: 2 additions & 2 deletions runtime4/caml/mlvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ typedef uintnat mark_t;
Caml_inline int Is_block(value x) {
int result;
value never_used;
__asm__ inline (
__asm__ (
"tzcnt %2, %1"
: "=@cca" (result), "=r" (never_used)
: "r" (x)
Expand All @@ -111,7 +111,7 @@ Caml_inline int Is_block(value x) {
Caml_inline int Is_long(value x) {
int result;
value never_used;
__asm__ inline (
__asm__ (
"tzcnt %2, %1"
: "=@ccbe" (result), "=r" (never_used)
: "r" (x)
Expand Down

0 comments on commit e802be6

Please sign in to comment.