← Commit list

bef171321

Denys Vlasenko
Denys Vlasenko
2017-04-10
SUCCESS Duration: 155s

Subject

factor: a bit more simple isqrt

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/factor.c+1 -1
@@ -62,7 +62,7 @@ static inline half_t isqrt(wide_t N)
*/
x = HALF_MAX;
mask_2bits = TOPMOST_WIDE_BIT | (TOPMOST_WIDE_BIT >> 1);
- while (mask_2bits && !(N & mask_2bits)) {
+ while (!(N & mask_2bits)) {
x >>= 1;
mask_2bits >>= 2;
}