Closed zealerww closed 4 years ago
https://github.com/flupke/pypotrace/blob/30516759971fc41bf605106ebc1d93f08cb90fd2/potrace/_potrace.pyx#L354
what potrace look like https://github.com/skyrpex/potrace/blob/master/src/bitmap.h#L41
use set on for example, potrace is (1 << (N-1)) >> (x & N-1), pypotrace is 1 << (N - 1 - x % N)), are these equal?
(1 << (N-1)) >> (x & N-1)
1 << (N - 1 - x % N))
https://github.com/flupke/pypotrace/blob/30516759971fc41bf605106ebc1d93f08cb90fd2/potrace/_potrace.pyx#L354
what potrace look like https://github.com/skyrpex/potrace/blob/master/src/bitmap.h#L41
use set on for example, potrace is
(1 << (N-1)) >> (x & N-1)
, pypotrace is1 << (N - 1 - x % N))
, are these equal?