The same changes for double prec version