fix ISE vs gcc trig differences