summaryrefslogtreecommitdiffstats
path: root/smenu.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-06-08 23:34:38 +0200
committerpgen <p.gen.progs@gmail.com>2023-06-09 15:47:07 +0200
commit131b94c135b9e0a72b482d365bca1b533c7e5c2a (patch)
tree8bbc2c4c2c9c6bbdfde694be4d57d33e24e531f5 /smenu.h
parent0b938b6e5f1838f9e4df60add0071ca439b1a365 (diff)
Indicate authorship of a piece of code
Diffstat (limited to 'smenu.h')
-rw-r--r--smenu.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/smenu.h b/smenu.h
index 62f9e23..dd3c94b 100644
--- a/smenu.h
+++ b/smenu.h
@@ -25,8 +25,11 @@
#define FREQ 10
#define TCK (SECOND / FREQ)
-/* Bit array management. */
-/* """"""""""""""""""""" */
+/* Large bit array management written by */
+/* Scott Dudley, Auke Reitsma and Bob Stout. */
+/* Assumes CHAR_BIT is one of either 8, 16, or 32. */
+/* Public domain. */
+/* """"""""""""""""""""""""""""""""""""""""""""""" */
#define MASK (CHAR_BIT - 1)
#define SHIFT ((CHAR_BIT == 8) ? 3 : (CHAR_BIT == 16) ? 4 : 8)