-rw-r--r-- 190 saferewrite-20210915/src/int32_positivemask/shift3/positive.c
#include <inttypes.h> int32_t int32_negativemask(int32_t x) { return x >> 31; } int32_t int32_positivemask(int32_t x) { int32_t c = -x; c ^= x & c; return int32_negativemask(c); }