multiply overflow detection function for Faiz, various metadex stuff