This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to gimplify_init_constructor for c++/38410


> > I cannot read Jason's mind, but I think that it's because the old
> > definition "num_nonzero_elements < num_type_elements/4" cannot be true
> > for num_type_elements smaller than 4.
>
> Yep.

Thanks, then

  sparse = (num_nonzero_elements == 0)
	   || (num_nonzero_elements < num_type_elements/4);

would achieve the same goal without changing the definition of sparseness.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]