3dem / relion

Image-processing software for cryo-electron microscopy
https://relion.readthedocs.io/en/latest/
GNU General Public License v2.0
453 stars 202 forks source link

a bug in relion-3.1.3/src/acc/cuda/cuda_kernels/helper.cuh:932 & has lower precedence than !=; != will be evaluated first #895

Closed baichenhan closed 2 years ago

baichenhan commented 2 years ago

if((x ^ y ^ z)&1 != 0) { img_in[pixel].x = -1; img_in[pixel].y = -1; } (the same as ver4.0)

I dont know why use " if((x ^ y ^ z)&1 != 0)", maybe it just like "if((x ^ y ^ z)& true)", Is it a mistake or something I cant understand?

biochem-fan commented 2 years ago

Duplicate of issue #894.