- I wonder how they achieved || functionality with (&& and unlikely) in the below piece of code.
if (unlikely(!arch_get_random_seed_long(&v)) && unlikely(!arch_get_random_long(&v))) { break; }
As per design, if arch_get_random_seed_long gets value &v there is no need to fill the value again in arch_get_random_long(). This piece of code working fine.
But, how do 'unlikely' achieve this. Skipping the remaining code after && once [unlikely(!0)] is achieved.
Thanks,Paavaanan