atomb / dalvik Goto Github PK
View Code? Open in Web Editor NEWHaskell parser for Dalvik bytecode
License: Other
Haskell parser for Dalvik bytecode
License: Other
cc @travitch
When attempting to build, I noticed this warning in cabal
,
src/Dalvik/Instruction.hs:642:46: Warning:
Literal 240 is out of the Int8 range -128..127
src/Dalvik/Instruction.hs:646:50: Warning:
Literal 4294901760 is out of the Int32 range -2147483648..2147483647
src/Dalvik/Instruction.hs:651:42: Warning:
Literal 18446744069414584320 is out of the Int64 range -9223372036854775808..9223372036854775807
regarding these lines:
signExt4 :: Word8 -> Int8
signExt4 w = w' .|. (if w' .&. 0x8 /= 0 then 0xF0 {- 240 -} else 0)
where w' = fromIntegral w
signExt16 :: Word32 -> Int32
signExt16 w = w' .|. (if w' .&. 0x8000 /= 0 then 0xFFFF0000 {-4294901760-} else 0)
where w' = fromIntegral w
signExt32 :: Int64 -> Int64
signExt32 w =
w' .|. (if w' .&. 0x80000000 /= 0 then 0xFFFFFFFF00000000 {-18446744069414584320-} else 0)
where w' = fromIntegral w
Is the intention here to make the these literals max bounds?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.