need to pack the two values into a 32bit long
authormike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 14 Mar 2012 02:04:40 +0000 (02:04 +0000)
committermike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 14 Mar 2012 02:04:40 +0000 (02:04 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@3377 2bbb7eff-a529-9590-31e7-b0007b416f81

src/opts/SkBitmapProcState_opts_SSE2.cpp

index 1852c66..5cb4325 100644 (file)
@@ -438,8 +438,8 @@ void ClampX_ClampY_nofilter_scale_SSE2(const SkBitmapProcState& s,
         // than max 16bit interger in the real world.
         if ((count >= 8) && (maxX <= 0xFFFF)) {
             while (((size_t)xy & 0x0F) != 0) {
-                *xy++ = SkClampMax((fx + dx) >> 16, maxX) | 
-                                   SkClampMax(fx >> 16, maxX);
+                *xy++ = pack_two_shorts(SkClampMax((fx + dx) >> 16, maxX),
+                                        SkClampMax(fx >> 16, maxX));
                 fx += 2 * dx;
                 count -= 2;
             }