-rw-r--r-- 95 saferewrite-20240807/src/int32_topbit_mask/ref/topbit_mask.c raw#include <inttypes.h> int32_t int32_topbit_mask(int32_t x) { x >>= 31; return -(1 & x); }