Absolute value of the difference of a and b
Syntaxdif(a,b)
Original Machine Code (in OPER resource) of Filter Factory 3.0 and 3.0.4 for Photoshop/Win32
| 58 | pop eax (param_b) | . |
| 5B | pop ebx (param_a) | . |
| 2B C3 | sub eax,ebx | param_b -= param_a; |
| 99 | cdq | edx = signbit(eax); |
| 33 C2 | xor eax,edx | param_b ^= edx; |
| 2B C2 | sub eax,edx | param_b -= edx; |
| 50 | push eax | return param_b; |