反转的精妙用法

反转的精妙用法

m0: 7
~m0: fffffffffffffff8
v: 0
v |= ~m0:fffffffffffffff8 ,  rev(v):1fffffffffffffff,  v++: 2000000000000000 , rev(v): 4
v |= ~m0:fffffffffffffffc ,  rev(v):3fffffffffffffff,  v++: 4000000000000000 , rev(v): 2
v |= ~m0:fffffffffffffffa ,  rev(v):5fffffffffffffff,  v++: 6000000000000000 , rev(v): 6
v |= ~m0:fffffffffffffffe ,  rev(v):7fffffffffffffff,  v++: 8000000000000000 , rev(v): 1
v |= ~m0:fffffffffffffff9 ,  rev(v):9fffffffffffffff,  v++: a000000000000000 , rev(v): 5
v |= ~m0:fffffffffffffffd ,  rev(v):bfffffffffffffff,  v++: c000000000000000 , rev(v): 3
v |= ~m0:fffffffffffffffb ,  rev(v):dfffffffffffffff,  v++: e000000000000000 , rev(v): 7
v |= ~m0:ffffffffffffffff ,  rev(v):ffffffffffffffff,  v++: 0 , rev(v): 0 

Leave a Comment

Your email address will not be published. Required fields are marked *

PHP 8.1.1 - 18.106 ms, 0 Q