projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
933dcf1
)
factor: improve comments for sieving logic... also fix a typo
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 13 Apr 2017 11:38:16 +0000
(13:38 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 13 Apr 2017 11:38:16 +0000
(13:38 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/factor.c
patch
|
blob
|
history
diff --git
a/coreutils/factor.c
b/coreutils/factor.c
index 5e23c6ca70446d19d02138adccdb6ebc7777f1a4..28175343991c0e395c5089869c82646be14ea888 100644
(file)
--- a/
coreutils/factor.c
+++ b/
coreutils/factor.c
@@
-107,8
+107,8
@@
static NOINLINE void factorize(wide_t N)
+ (MULTIPLE_OF_5 - 6 * SHIFT_5)
+ (MULTIPLE_OF_7 - 9 * SHIFT_7)
//+ (MULTIPLE_OF_11 - 15 * SHIFT_11)
- //+ (MULTIPLE_OF_1
1
- 18 * SHIFT_13)
- //+ (MULTIPLE_OF_1
1
- 24 * SHIFT_17)
+ //+ (MULTIPLE_OF_1
3
- 18 * SHIFT_13)
+ //+ (MULTIPLE_OF_1
7
- 24 * SHIFT_17)
;
factor = 3;
for (;;) {