commit | e96b312150d8e376c1ef463793d1929eca3618d5 | [log] [tgz] |
---|---|---|
author | David Lamparter <equinox@diac24.net> | Wed Apr 04 00:14:36 2012 +0200 |
committer | David Lamparter <equinox@diac24.net> | Wed Apr 04 00:25:51 2012 +0200 |
tree | 33bdbba11475be746d7ebf684fd1441b9db4b929 | |
parent | a3537862f3c00b60fc52a67c1cc447c2a65f97bd [diff] |
lib: pretty ip_masklen and masklen2ip nonwithstanding any desire for optimisation, these versions are shorter and more concise. reading the comments, they might even be easier to understand. I've tested them on i686 and x86_64, and checked that correct assembler code is emitted for ARM, MIPS and PowerPC. IPv6 is left as an exercise for another day, none of the ideas I had led to a "yes, this is the one to go with" solution. Signed-off-by: David Lamparter <equinox@diac24.net>