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

BOOST_ARCH_WORD_BITS=32 on riscv64 #135

Open
Kojoley opened this issue Mar 24, 2024 · 0 comments
Open

BOOST_ARCH_WORD_BITS=32 on riscv64 #135

Kojoley opened this issue Mar 24, 2024 · 0 comments

Comments

@Kojoley
Copy link

Kojoley commented Mar 24, 2024

This logic is obviously wrong:

#if defined(__riscv)
# undef BOOST_ARCH_RISCV
# define BOOST_ARCH_RISCV BOOST_VERSION_NUMBER_AVAILABLE
#endif
#if BOOST_ARCH_RISCV
# define BOOST_ARCH_RISCV_AVAILABLE
#endif
#if BOOST_ARCH_RISCV
# undef BOOST_ARCH_WORD_BITS_32
# define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
#endif

IIUC __riscv_xlen can be used to detect correct word bitwidth.

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