projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37bb3cc
)
fix typo in sys/param.h that broke setbit, etc. macros
author
Rich Felker
<dalias@aerifal.cx>
Thu, 10 May 2012 15:55:16 +0000
(11:55 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 10 May 2012 15:55:16 +0000
(11:55 -0400)
this is all junk, but some programs use it.
include/sys/param.h
patch
|
blob
|
history
diff --git
a/include/sys/param.h
b/include/sys/param.h
index 1650e7723bf18e697dafd9d29a473877637eb7f5..17e3d6695540175adfce76a63b9524cf9ae704ba 100644
(file)
--- a/
include/sys/param.h
+++ b/
include/sys/param.h
@@
-18,7
+18,7
@@
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
-#define __
_
bitop(x,i,o) ((a)[(i)/8] o 1<<(i)%8)
+#define __bitop(x,i,o) ((a)[(i)/8] o 1<<(i)%8)
#define setbit(x,i) __bitop(x,i,|=)
#define clrbit(x,i) __bitop(x,i,&=~)
#define isset(x,i) __bitop(x,i,&)