>> +def mask_ntob(mask):
>> +    return UINT32_MAX << 32 - mask & UINT32_MAX
> 
> Maybe
> (UINT32_MAX << 32 - mask & UINT32_MAX) & UINT32_MAX
> 32+ bit isn't needed becase of ipv4. right?

iirc
    UINT32_MAX << 32 - mask & UINT32_MAX
means 
    (UINT32_MAX << (32 - mask)) & UINT32_MAX

YAMAMOTO Takashi

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to