Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Last active December 29, 2021 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerstlouis/e34e2b49cc887a01b428c6df753dbb1c to your computer and use it in GitHub Desktop.
Save jerstlouis/e34e2b49cc887a01b428c6df753dbb1c to your computer and use it in GitHub Desktop.
21c21
< return __x<<8 | __x>>8;
---
> return (__x<<8) | (__x>>8);
26c26
< return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
---
> return (__x>>24) | ((__x>>8)&0xff00) | ((__x<<8)&0xff0000) | (__x<<24);
31c31
< return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
---
> return ((__bswap32((uint32_t)__x)+0ULL)<<32) | (__bswap32((uint32_t)(__x>>32)));
102c102
< #define isunordered(x,y) (isnan((x)) ? ((void)(y),1) : isnan((y)))
---
> #define isunordered(x,y) (isnan((float)(x)) ? ((void)(y),1) : isnan((float)(y)))
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:31:19: warning: incompatible expression __x (uint64); expected uint
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:31:45: warning: incompatible expression __x >> 32 (uint64); expected uint
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:31:23: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:31:23: note: place parentheses around the '+' expression to silence this warning
/home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/math.h:109:117: warning: incompatible expression __x (double); expected float
/home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/math.h:109:116: warning: incompatible expression (__x) (double); expected float
/home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/math.h:109:334: warning: incompatible expression __y (double); expected float
/home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/math.h:109:333: warning: incompatible expression (__y) (double); expected float
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:26:29: warning: '&' within '|' [-Wbitwise-op-parentheses]
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:26:29: note: place parentheses around the '&' expression to silence this warning
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:26:49: warning: '&' within '|' [-Wbitwise-op-parentheses]
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:26:49: note: place parentheses around the '&' expression to silence this warning
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:31:23: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
../../../../home/jerome/emsdk/upstream/emscripten/system/lib/libc/musl/include/endian.h:31:23: note: place parentheses around the '+' expression to silence this warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment