This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use HOST_WIDE_INTs in gcd and least_common_multiple.
- From: Richard Henderson <rth at redhat dot com>
- To: Sebastian Pop <sebpop at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, rguenther at suse dot de
- Date: Fri, 29 Jul 2011 17:46:50 -0700
- Subject: Re: [PATCH] Use HOST_WIDE_INTs in gcd and least_common_multiple.
- References: <Pine.LNX.4.64.1101312102290.12205@digraph.polyomino.org.uk> <1311918458-6663-1-git-send-email-sebpop@gmail.com>
On 07/28/2011 10:47 PM, Sebastian Pop wrote:
> 2011-01-28 Sebastian Pop <sebastian.pop@amd.com>
> Joseph Myers <joseph@codesourcery.com>
>
> * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
> * hwint.c: Include diagnostic-core.h.
> (abs_hwi): New.
> (gcd): Moved here...
> (pos_mul_hwi): New.
> (mul_hwi): New.
> (least_common_multiple): Moved here...
> * hwint.h (gcd): ... from here.
> (least_common_multiple): ... from here.
> (HOST_WIDE_INT_MIN): New.
> (HOST_WIDE_INT_MAX): New.
> (abs_hwi): Declared.
> (gcd): Declared.
> (pos_mul_hwi): Declared.
> (mul_hwi): Declared.
> (least_common_multiple): Declared.
> * omega.c (check_pos_mul): Removed.
> (check_mul): Removed.
> (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
> mul_hwi instead of check_mul.
OK.
r~