mdbx: more parallelable CMP2INT for E2K.

This commit is contained in:
Leonid Yuriev 2021-11-10 03:17:59 +03:00
parent e488604448
commit 0e2ca3eb51

View File

@ -1501,10 +1501,11 @@ typedef struct MDBX_node {
* | 1, a > b * | 1, a > b
* \ * \
*/ */
#if 1 #ifndef __e2k__
/* LY: fast enough on most systems */ /* LY: fast enough on most systems */
#define CMP2INT(a, b) (((b) > (a)) ? -1 : (a) > (b)) #define CMP2INT(a, b) (((b) > (a)) ? -1 : (a) > (b))
#else #else
/* LY: more parallelable on VLIW Elbrus */
#define CMP2INT(a, b) (((a) > (b)) - ((b) > (a))) #define CMP2INT(a, b) (((a) > (b)) - ((b) > (a)))
#endif #endif