hashMem2half