Re: Need a hand with a small C conversion

new topic     » goto parent     » topic index » view thread      » older message » newer message

try these..

positive shift left

negative shift right global function bitshift(atom x, atom shift) return floor(x * power(2,shift) end function

global function lshift(atom x, atom shift) return bitshift(x,shift) end function

global function rshift(atom x, atom shift) return bitshift(x,-shift) end function

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu