Go to the source code of this file.
◆ int32_MINMAX
#define int32_MINMAX |
( |
| a, |
|
|
| b ) |
Value:do { \
asm( \
"cmpl %1,%0\n\t" \
"mov %0,%2\n\t" \
"cmovg %1,%0\n\t" \
"cmovg %2,%1\n\t" \
:
"+r"(
a),
"+r"(b),
"=r"(temp1) \
: \
: "cc" \
); \
} while(0)
Definition at line 1 of file int32_minmax_x86.c.
1#define int32_MINMAX(a,b) \
2do { \
3 int32 temp1; \
4 asm( \
5 "cmpl %1,%0\n\t" \
6 "mov %0,%2\n\t" \
7 "cmovg %1,%0\n\t" \
8 "cmovg %2,%1\n\t" \
9 : "+r"(a), "+r"(b), "=r"(temp1) \
10 : \
11 : "cc" \
12 ); \
13} while(0)
Referenced by __attribute__(), and int32_sort().