Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice stuff! But I was confused by the following:

    QOI_RUN8 {
        u8 tag  :  3;   // b010
    ...
    QOI_RUN16 {
        u8 tag  :  3;   // b011
I think there might be a bug lurking in those tag values.

EDIT: Wow, I'm blind. Those 3s were bits consumed by the tag, not tag values...



The :3 means how wide the field is. Instructions are byte-aligned, but bit-packed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: