Hi,
Better (UINT)((j+1)>>1)
Where have you been 3 weeks ago? :) Somebody already implemented it:
<http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/config.c?revision=42838&view=markup#l_708>
// if even
If (!x & 1)
If the code and the comments disagree, then both are probably wrong. ;)