Skip to content

fix return types of our 64-bit clz/ctz/popcount intrinsics #4238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/iwasm/aot/aot_intrinsic.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ aot_intrinsic_clz_i32(uint32 type)
return num;
}

uint32
uint64
aot_intrinsic_clz_i64(uint64 type)
{
uint32 num = 0;
Expand All @@ -220,7 +220,7 @@ aot_intrinsic_ctz_i32(uint32 type)
return num;
}

uint32
uint64
aot_intrinsic_ctz_i64(uint64 type)
{
uint32 num = 0;
Expand All @@ -244,7 +244,7 @@ aot_intrinsic_popcnt_i32(uint32 u)
return ret;
}

uint32
uint64
aot_intrinsic_popcnt_i64(uint64 u)
{
uint32 ret = 0;
Expand Down
6 changes: 3 additions & 3 deletions core/iwasm/aot/aot_intrinsic.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,19 @@ aot_intrinsic_fmax_f64(float64 a, float64 b);
uint32
aot_intrinsic_clz_i32(uint32 type);

uint32
uint64
aot_intrinsic_clz_i64(uint64 type);

uint32
aot_intrinsic_ctz_i32(uint32 type);

uint32
uint64
aot_intrinsic_ctz_i64(uint64 type);

uint32
aot_intrinsic_popcnt_i32(uint32 u);

uint32
uint64
aot_intrinsic_popcnt_i64(uint64 u);

float32
Expand Down
Loading