fixed double intrinsics, use isnan()