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

Make string conversion functions mappings #768

Open
Timmmm opened this issue Nov 11, 2024 · 0 comments
Open

Make string conversion functions mappings #768

Timmmm opened this issue Nov 11, 2024 · 0 comments

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Nov 11, 2024

Currently we have these string conversion functions/mappings (ignoring hex_bits_signed):

Name Base Type
hex_bits 16 bits(N) <-> str
bits_str 16 (or 2 if N is not a multiple of 4) bits(N) -> str
dec_str 10 int -> str
hex_str 16 int -> str

This is a bit inconsistent. It would be nice if everything was a mapping, and maybe the naming was a bit more consistent:

Name Base Type
hex_bits 16 bits(N) <-> str
str_bits? 16 (or 2 if N is not a multiple of 4) bits(N) <-> str
dec_int 10 int <-> str
hex_int 16 int <-> str

I dunno if those are the best names. Anyway making dec_str and hex_str a mapping would be useful in quite a lot of the RISC-V assembly mappings.

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

No branches or pull requests

1 participant