Re: [U-Boot] [PATCH 1/1] fix min/max macros in common.h

2011-01-31 Thread Aaron Williams
Any comments on this? This bug caused me a lot of troube. -Aaron On Tuesday, January 25, 2011 02:30:55 pm Aaron Williams wrote: > In some of my work with the Cavium Octeon 64-bit processor I ran into a > problem with the min and max macros provided in common.h. The problem > occurs if x is 32-bi

Re: [U-Boot] [PATCH 1/1] fix min/max macros in common.h

2011-01-27 Thread Aaron Williams
Any comments on this? This bug caused me a lot of problems since we make use of 64-bit values quite a bit. -Aaron On Tuesday, January 25, 2011 02:30:55 pm Aaron Williams wrote: > In some of my work with the Cavium Octeon 64-bit processor I ran into a > problem with the min and max macros provid

[U-Boot] [PATCH 1/1] fix min/max macros in common.h

2011-01-25 Thread Aaron Williams
In some of my work with the Cavium Octeon 64-bit processor I ran into a problem with the min and max macros provided in common.h. The problem occurs if x is 32-bit and y is 64-bit. In this case, y will always be truncated to 32-bits. This patch fixes this problem. -Aaron diff --git a/include/