nave@lemmy.ca to Lemmy Shitpost@lemmy.world · 2 months agopreferencesimagemessage-square30linkfedilinkarrow-up1539arrow-down13
arrow-up1536arrow-down1imagepreferencesnave@lemmy.ca to Lemmy Shitpost@lemmy.world · 2 months agomessage-square30linkfedilink
minus-squareblackstampede@sh.itjust.workslinkfedilinkarrow-up28·2 months 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-22 months 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.