-
Notifications
You must be signed in to change notification settings - Fork 401
Fix bswap with MSVC compiler #85
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
base: main
Are you sure you want to change the base?
Conversation
|
Wouldn't this break clang builds on win32? |
|
@yellows111 Because of |
|
Duplicate of a fix I added in #35 In fact both of us may learn from the IDAXEX implementation which should work on Windows, MacOS, and Linux. |
I do not see I'm concerned due to seeing the following: "This is the default for Windows targets.", and "For compatibility with existing code that compiles with MSVC, clang defines the Can someone verify that this change doesn't cause builds using |
|
@yellows111 I made sure to check for Clang should not be defining macros made for other compilers though. That's kinda concerning, considering there are very few ways to check the active compiler. |
|
Is this needed? I already discourage people from using MSVC, and XenonRecomp's output uses many clang/GCC intrinsics that don't work on MSVC anyway. |
Maybe just don't do that? Seems like a bad idea to me. idk... |
|
MSVC has horrendous code generation/optimization. It shouldn't be used for the output of a project like this. |
Hi,
Quick compilation fix for MSVC.
__builtin_bswap is for clang/GCC and byteswap is for MSVC.
Cheers,
-Yohann