kiri

joined 2 years ago
[–] kiri@ani.social 7 points 2 days ago* (last edited 2 days ago)

i3/sway in Manjaro/CachyOS or just install it on raw arch/debian

1
intel core solo (ani.social)
submitted 4 weeks ago* (last edited 4 weeks ago) by kiri@ani.social to c/onehundredninetysix@lemmy.blahaj.zone
 

Source: some kind of old board.

 
[–] kiri@ani.social 0 points 1 year ago* (last edited 1 year ago)

I have a solution with a bit fields. Now your bool is 1 byte :

struct Flags {
    bool flag0 : 1;
    bool flag1 : 1;
    bool flag2 : 1;
    bool flag3 : 1;
    bool flag4 : 1;
    bool flag5 : 1;
    bool flag6 : 1;
    bool flag7 : 1;
};

Or for example:

struct Flags {
    bool flag0 : 1;
    bool flag1 : 1:
    int x_cord : 3;
    int y_cord : 3;
};