Skip to content
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

PPU fixup #11410

Merged
merged 1 commit into from Jan 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion rpcs3/util/simd.hpp
Expand Up @@ -117,7 +117,12 @@ namespace asmjit

vec_type vec_alloc()
{
ensure(~vec_allocated);
if (!~vec_allocated)
{
fail_flag = true;
return vec_type{0};
}

const u32 idx = std::countr_one(vec_allocated);
vec_allocated |= vec_allocated + 1;
return vec_type{idx};
Expand Down