Write code for a function with the following prototype:
/* Addition that saturates to TMin or TMax */intsaturating_add(int x,int y);
Instead of overflowing the way normal two's-complement addition does, saturating addition returns $TMax$ when there would be positive overflow, and $TMin$ in programs that perform digital signal processing.