Simplify gte.cpp