Both birds and crocodiles are archosaurs that share a four-chambered heart, which is an evolutionary advancement allowing complete separation of oxygenated and deoxygenated blood. This differs from most reptiles which have three-chambered hearts with partial mixing. The four-chambered heart supports higher metabolic rates and endothermy in birds, while crocodiles retain this structure from their archosaur ancestors.