summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-28 16:19:27 -0400
committerJakob Kaivo <jkk@ung.org>2022-03-28 16:19:27 -0400
commit78b0ad5c296c186b04926621a7663a5c5bc139b6 (patch)
treed50984d49dfde38ad5df6f6aecf08778493dc1a2
parent69a209875107dce06174442d214c92f2fe748aae (diff)
reformat constants for readability
-rw-r--r--big.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/big.c b/big.c
index 4ea8726..356a8d2 100644
--- a/big.c
+++ b/big.c
@@ -16,13 +16,22 @@
#define MAX_INT_BITS 60
#define LONG_LONG_OVERFLOW (1ll<<MAX_INT_BITS)
+#define DIGITWIDTH 15
-#define PTEN 10000 /* largest power of ten < IBASE (used by bigscan) */
-#define PSIXTEEN 4096 /* largest power of sixteen <= IBASE (used by bigtostr) */
-#define PEIGHT 0100000 /* (=32768) largest power of eight <= IBASE (used by bigtostr) */
-#define TENW 4 /* number of factors of 10 in PTEN */
-#define OCTW 5 /* number of factors of 8 in IBASE */
-#define DIGITWIDTH 15
+/* largest power of ten < IBASE (used by bigscan) */
+#define PTEN 10000
+
+/* largest power of sixteen <= IBASE (used by bigtostr) */
+#define PSIXTEEN 4096
+
+/* (=32768) largest power of eight <= IBASE (used by bigtostr) */
+#define PEIGHT 0100000
+
+/* number of factors of 10 in PTEN */
+#define TENW 4
+
+/* number of factors of 8 in IBASE */
+#define OCTW 5
struct big_div {
word quo;