aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSoeren Balko <Soeren.Balko@gmail.com>2014-04-17 15:23:02 +1000
committerSoeren Balko <Soeren.Balko@gmail.com>2014-04-17 15:23:02 +1000
commit8e812b712fb6d281b48fba60af36103e062f495e (patch)
tree98ac97a703bef0eff004bf499456307a78257c38 /src
parenteedeeda0ae6558b02f1fa81562af6f6159765f3d (diff)
Removed superfluous casts
Diffstat (limited to 'src')
-rw-r--r--src/library.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/library.js b/src/library.js
index a29a9727..c2830397 100644
--- a/src/library.js
+++ b/src/library.js
@@ -3912,18 +3912,14 @@ LibraryManager.library = {
llvm_bswap_i16__sig: 'ii',
llvm_bswap_i16: function(x) {
x = x|0;
- return (((((x&0xff)|0)<<8)|0) |
- (((x>>8)|0)&0xff)|0)|0;
+ return (((x&0xff)<<8) | ((x>>8)&0xff))|0;
},
llvm_bswap_i32__asm: true,
llvm_bswap_i32__sig: 'ii',
llvm_bswap_i32: function(x) {
x = x|0;
- return (((((x&0xff)|0)<<24)|0) |
- ((((((x>>8)|0)&0xff)|0)<<16)|0) |
- ((((((x>>16)|0)&0xff)|0)<<8)|0) |
- ((x>>>24)|0))|0;
+ return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
},
llvm_bswap_i64__deps: ['llvm_bswap_i32'],