#ifndef BRANCHLESS_H #define BRANCHLESS_H #define BL_MIN(v1, v2) ((((v1) >= (v2)) * (v2)) + (((v1) < (v2)) * (v1))) #define BL_MAX(v1, v2) ((((v1) >= (v2)) * (v1)) + (((v1) < (v2)) * (v2))) #endif /* BRANCHLESS_H */