Skip to content

Conversation

@sim642
Copy link
Member

@sim642 sim642 commented Jan 9, 2026

This is used in Linux kernel.

It translates __builtin_bswap16(x) to (unsigned short)(((int)x << 8) | ((int)x >> 8))) in constant contexts like switch cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants