diff options
author | David Lamparter <equinox@diac24.net> | 2012-04-04 00:14:36 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-04-04 00:25:51 +0200 |
commit | e96b312150d8e376c1ef463793d1929eca3618d5 (patch) | |
tree | 33bdbba11475be746d7ebf684fd1441b9db4b929 /bgpd/bgp_btoa.c | |
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>
Diffstat (limited to 'bgpd/bgp_btoa.c')
0 files changed, 0 insertions, 0 deletions