SugarBug
2024-05-04 14:24:12 UTC
Example:
rol() { num="$@" ; pre=$((num<<13)) ; suf=$((num>>19)) ;
num=$((pre^suf)) ; num=$((num&0xffffffff)) ; echo "$num" ; }
What tricks will make this more efficient in Bash?
rol() { num="$@" ; pre=$((num<<13)) ; suf=$((num>>19)) ;
num=$((pre^suf)) ; num=$((num&0xffffffff)) ; echo "$num" ; }
What tricks will make this more efficient in Bash?
--
www.sybershock.com | sci.crypt | alt.sources.crypto | alt.lite.bulb
www.sybershock.com | sci.crypt | alt.sources.crypto | alt.lite.bulb