SIGNEX
#define SIGNEX(v,width) ((((long long)(v))<<(64-width))>>(64-width))
#define SIGNEX(v,width) ((((int)(v))<<(32-width))>>(32-width))