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: Data dependence merge


On Mon, Oct 11, 2004 at 02:01:45PM -0400, Daniel Berlin wrote:
> 
> For the moment, i'm just going to add some testcases that we expect to 
> be interchanged, and verify that we interchange them.
> Runtime tests that the transformation was performed correctly are going 
> to take more time.
> It's on my list for today.
> 

Cool, thanks.

> 
> 
> >+#define FLOOR(x,y) (CEIL (x, y) - ((int_divides_p (y, x)) ? 0 : 1))
> >+
> 
> FLOOR_DIV(X, Y) is simply ((X) / (Y)) in C
> 
> Or, if you really want to not deal with truncation, (x - (x % y)) / y
> 
> Unless you have to handle negative numbers, in which case i guess the 
> above is better ;)

Correct my definition as you think is better.  Thanks.

Sebastian


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