{"author_name":"na6ko","provider_url":"https://hatena.blog","version":"1.0","categories":[],"url":"https://na6ko.hatenadiary.jp/entry/2026/03/22/221331","title":"bitswap \u306e 16bit-16bit \u306e\u5b9f\u88c5\u306b\u3064\u3044\u3066","blog_title":"naruko\u306e\u958b\u767a\u30e1\u30e2","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/na6ko/","published":"2026-03-22 22:13:31","blog_url":"https://na6ko.hatenadiary.jp/","type":"rich","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fna6ko.hatenadiary.jp%2Fentry%2F2026%2F03%2F22%2F221331\" title=\"bitswap \u306e 16bit-16bit \u306e\u5b9f\u88c5\u306b\u3064\u3044\u3066 - naruko\u306e\u958b\u767a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"height":"190","description":"lut \u3092\u4f7f\u3046\u5834\u5408\u306b 4bit x4 \u3067\u7121\u96e3\u306b\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3093\u3060\u304c 1 bit + 5 bit x3 \u306e\u5b9f\u88c5\u3092\u8a66\u3057\u3066\u307f\u305f\u304c\u3001\u3053\u308c\u304c\u304b\u306a\u308a tricky \u306b\u308f\u308a\u3068\u65e9\u304f\u30e1\u30e2\u30ea\u6d88\u8cbb\u3082\u305d\u3053\u305d\u3053\u3089\u3057\u3044\u3068\u3044\u3046\u30b3\u30fc\u30c9\u304c\u3067\u304d\u305f. lea table+0x80,a0 moveq #0x3e,d1 moveq #0,d0 ;output q add.w d2,d2 ;input d #if delta >= 8 roxr.w #16-delta,d0 #elif delta >= 1 roxl.w #delta+1,d0 #else ;delta == 0 addx.w d0,d0 #endif move.w d2\u2026"}