{"id":75,"date":"2010-05-10T18:19:04","date_gmt":"2010-05-10T18:19:04","guid":{"rendered":"http:\/\/mitat.tuu.fi\/?p=75"},"modified":"2010-05-10T18:20:29","modified_gmt":"2010-05-10T18:20:29","slug":"bitwise-rotate-left-rol-in-arduino","status":"publish","type":"post","link":"http:\/\/mitat.tuu.fi\/?p=75","title":{"rendered":"Bitwise rotate left (ROL) in Arduino"},"content":{"rendered":"<p>byte rol(byte b, byte amount)<br \/>\n{<br \/>\namount = amount % 8;<br \/>\nuint8_t tmp = b;<br \/>\ntmp = (tmp &gt;&gt; (8-amount)) | (tmp &lt;&lt; amount);<br \/>\nreturn tmp;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>byte rol(byte b, byte amount) { amount = amount % 8; uint8_t tmp = b; tmp = (tmp &gt;&gt; (8-amount)) | (tmp &lt;&lt; amount); return tmp; }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7,11],"tags":[14],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-code","category-electronics","category-snippet","tag-rol-rotate-shift-left-roll-arduino"],"_links":{"self":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=75"}],"version-history":[{"count":2,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":76,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions\/76"}],"wp:attachment":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}