elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
busyelks
/
lib
/
fsbitops.c
File editor
#ifndef __linux__ #define volatile #endif unsigned char set_bit(unsigned int nr, void * add) { unsigned int * addr = add; int mask, retval; addr += nr >> 4; mask = 1 << (nr & 0x0f); retval = (mask & *addr) != 0; *addr |= mask; return retval; } unsigned char clear_bit(unsigned int nr, void * add) { unsigned int * addr = add; int mask, retval; addr += nr >> 4; mask = 1 << (nr & 0x0f); retval = (mask & *addr) != 0; *addr &= ~mask; return retval; } unsigned char test_bit(unsigned int nr, void * add) { unsigned int * addr = add; unsigned int mask; int retval; addr += nr >> 4; mask = 1 << (nr & 0x0f); retval = ((mask & *addr) != 0L); return retval; }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history