For purposes of this paragraph, the term “25-percent owner” means a controlled foreign corporation which owns directly 25 percent or more of the capital or profits interest in a partnership. For purposes of the preceding sentence, if a controlled foreign corporation is a shareholder or partner of a corporation or partnership, the controlled foreign corporation shall be treated as owning directly its proportionate share of any such capital or profits interest held directly or indirectly by such corporation or partnership. If a controlled foreign corporation is treated as owning a capital or profits interest in a partnership under constructive ownership rules similar to the rules of section
958
(b), the controlled foreign corporation shall be treated as owning such interest directly for purposes of this subparagraph.