| ▲ | j16sdiz 2 hours ago | |
BSR = bitwise right-shift ORD4 = cast as 32bit integer. BSR(x,1) simply meant x divided by 2. This is very comment coding idom back in those days when Compiler don't do any optimization and bitwise-shift is much faster than division. The snippet in C would be: | ||
| ▲ | j16sdiz 2 hours ago | parent [-] | |
Reading the full function here https://github.com/amix/photoshop/blob/2baca147594d01cf9d17d... If I understand it correctly, it was calculating the top-left point of the bounding box. | ||