nave@lemmy.ca to Lemmy Shitpost@lemmy.world · 21 days agopreferenceslemmy.caimagemessage-square33fedilinkarrow-up1540arrow-down12
arrow-up1538arrow-down1imagepreferenceslemmy.canave@lemmy.ca to Lemmy Shitpost@lemmy.world · 21 days agomessage-square33fedilink
minus-squareblackstampede@sh.itjust.workslinkfedilinkarrow-up28·20 days agoWrong. Ryzen >> amd = 0. The string “amd” is 6384996, when interpreted as a decimal. Right shifting by that many digits turns Ryzen (0101001001111001011110100110010101101110) into 0.
minus-squareone_knight_scripting@lemmy.worldlinkfedilinkarrow-up2·edit-217 days agoThis is not a programming language, this is bash. >> Does not right-shift bits, it appends to a file.
Wrong. Ryzen >> amd = 0. The string “amd” is 6384996, when interpreted as a decimal. Right shifting by that many digits turns Ryzen (0101001001111001011110100110010101101110) into 0.
This is not a programming language, this is bash.
>> Does not right-shift bits, it appends to a file.