Home > Back-end >  __max and __min function problem
__max and __min function problem

Time:04-30

I see in a source for such statements:
* R=(__max (__min (r2, 1), 0));
* G=(__max (__min (g2, 1), 0));
* B=(__max (__min (b2, 1), 0));
I'm bcb6.0 compiler pass, could you tell me how to rewrite the above statement?

CodePudding user response:

His definition:
# define __max (a, b) ((a) & gt; (b)? (a) : (b))
# define __min (a, b) ((a) & lt; (b)? (a) : (b))

CodePudding user response:

Can separate write, read some,
  • Related