MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeBit

Function writeBit

source/kernel/devs/devinput.cpp:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188static void writeBit(KMemory* memory, U32 address, U32 bit) {
189 U32 b = bit/8;
190 U32 p = bit % 8;
191 U32 value = memory->readb(address+b);
192 value|=(1<<p);
193 memory->writeb(address+b, value);
194}
195
196// struct input_absinfo {
197// __s32 value;

Callers 1

ioctlMethod · 0.85

Calls 2

readbMethod · 0.45
writebMethod · 0.45

Tested by

no test coverage detected