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

strlen: Replace PTRLOG with explicit 3 #182

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

jones-drew
Copy link
Contributor

The shift immediate should be 3, even for rv32, since we want log(bits-per-byte), not log(bytes-per-word). PTRLOG implies log(bytes-per-word), so replace it with an explicit 3 as is used elsewhere in the example when log(bits-per-byte) is needed.

The shift immediate should be 3, even for rv32, since we want
log(bits-per-byte), not log(bytes-per-word). PTRLOG implies
log(bytes-per-word), so replace it with an explicit 3 as is
used elsewhere in the example when log(bits-per-byte) is needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants