Skip to content

Conversation

@rnpnr
Copy link
Contributor

@rnpnr rnpnr commented Dec 30, 2024

No description provided.

#define HAVE_GCC_ASM_FOR_X64 1
#define HAVE_GCC_ASM_FOR_X87 1
/* #undef HAVE_GCC_ASM_FOR_X64 */
/* #undef HAVE_GCC_ASM_FOR_X87 */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could just guard this by

#if __x86_64__
...
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you could. One reason to keep it as I’ve written it is that if you update the header on an amd64 system and forget to include the #if __x86_64__ the compiler will warn you about redefining those macros

I could go either way though.

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.

2 participants