msg_type_hash
msg_hash = msg_type_hash(type);
neg_index = msg_type_hash(-type);
static uint_t msg_type_hash(long);
msg_hash = msg_type_hash(msgtyp);