Cross platform arithmetic