[PATCH] Provide basic folding for __builtin_powi

Roger Sayle roger@eyesopen.com
Thu Feb 10 22:54:00 GMT 2005


On Thu, 10 Feb 2005, Richard Guenther wrote:
> On Wed, 9 Feb 2005, Roger Sayle wrote:
> > 	if (host_integerp (arg1, 1))
> > 	{
> > 	  HOST_WIDE_INT c = TREE_INT_CST_LOW (arg1);
>
> >From looking at host_integerp you probably mean
>
> 	if (host_integerp (arg1, 0))
>
> ?

Doh!.  Typo.  Yes, you want to "signed HOST_WIDE_INT" test.

Roger
--



More information about the Gcc-patches mailing list