-rw-r--r-- 198 saferewrite-20210903/src/int32_nonzeromask/shift2/nonzero.c
#include <inttypes.h> int32_t int32_negativemask(int32_t x) { return x >> 31; } int32_t int32_nonzeromask(int32_t x) { if (int32_negativemask(x)) return -1; return int32_negativemask(-x); }