#include uint16_t uint16_topbit_mask(uint16_t x) { x >>= 15; return -(1 & x); }