FilterFactory - Function "min"

Back to function listing

Lesser of a and b

Syntax

min(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) .
59 pop ecx (param_a) .
3B C1 cmp eax,ecx .
7C 02 jl +$02 (@@1) if (param_b < param_a) goto @@1;
8B C1 mov eax,ecx param_b = param_a;
@@1: @@1;
50 push eax return param_b;