# HG changeset patch # User michaelni # Date 1045921456 0 # Node ID 296c7fc8358f11cc64452bc7e82115bb32c78bd2 # Parent 65908e4b81f88985c293b4b087923e227fbdbb89 32 vs. 64bit bugfix by (Dave Huang (dahanc)) diff -r 65908e4b81f8 -r 296c7fc8358f alpha/simple_idct_alpha.c --- a/alpha/simple_idct_alpha.c Thu Feb 20 17:30:51 2003 +0000 +++ b/alpha/simple_idct_alpha.c Sat Feb 22 13:44:16 2003 +0000 @@ -49,7 +49,7 @@ static inline int idct_row(DCTELEM *row) { int_fast32_t a0, a1, a2, a3, b0, b1, b2, b3, t; - uint64_t l, r; + uint64_t l, r, t2; l = ldq(row); r = ldq(row + 4); @@ -60,12 +60,12 @@ if (((l & ~0xffffUL) | r) == 0) { a0 >>= ROW_SHIFT; - a0 = (uint16_t) a0; - a0 |= a0 << 16; - a0 |= a0 << 32; + t2 = (uint16_t) a0; + t2 |= t2 << 16; + t2 |= t2 << 32; - stq(a0, row); - stq(a0, row + 4); + stq(t2, row); + stq(t2, row + 4); return 1; }