>>395
>return a & ~mask | b & window;
return a & (0xff-window) | b & window;
でもいいかな。と、ちょっと理解していないんだが。