Working CPU inverse transforms for tmerc