Can someone port this to C?

Posted by Tech163 on Stack Overflow See other posts from Stack Overflow or by Tech163
Published on 2010-05-28T19:54:55Z Indexed on 2010/05/28 20:01 UTC
Read the original article Hit count: 131

Filed under:
|

I've spent the last few hours trying to port this to C, with no success. Can someone please help?

function zerofill($a, $b) {
    $z = hexdec(80000000);
    if ($z & $a) {
        $a = ($a>>1);
        $a &= (~$z);
        $a |= 0x40000000;
        $a = ($a>>($b-1));
    } else {
        $a = ($a>>$b);
    }
    return $a;
}

© Stack Overflow or respective owner

Related posts about php

Related posts about c