You should be noted that twinjets like B777 are subjected to ETOPS constraint, so they cannot fly over remote areas with ETOPS no-go zones, like the poles, southern hemisphere oceans. So twinjets have to use much longer routing rather than shortest great circle route used by quadjets like A340.
Thus my comparison between B777 & A340 is not fales and subjective. Instead it is real and objective.