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