MC7350 Gateway Calculation

Understand the subnet mask and gateway is automatically calculated by the MC7350 chipset.
I found reference to how the subnet mask is calculated using LSB/MSB; however, have not located information pertaining to the gateway.
Presently using Debian Linux.

Can someone offer some insight in how the gateway is calculated by the MC7350 chipset?