-rw-r--r-- 95 saferewrite-20241004/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); }