~ubuntu-branches/ubuntu/saucy/mupen64plus-video-rice/saucy

« back to all changes in this revision

Viewing changes to src/FrameBuffer.cpp

  • Committer: Package Import Robot
  • Author(s): Sven Eckelmann, Simon Ruderich, Sven Eckelmann
  • Date: 2012-05-15 23:36:28 UTC
  • Revision ID: package-import@ubuntu.com-20120515233628-9v4e0l1mt7b73sfk
Tags: 1.99.5-2
[ Simon Ruderich ]
* Let debhelper set the buildflags implicitly

[ Sven Eckelmann ]
* debian/patches:
  - Add non-pic-build.patch, Fix symbol references for non-PIC builds
* Install architecture independent files into /usr/share/games/mupen64plus

Show diffs side-by-side

added added

removed removed

Lines of Context:
667
667
                     );
668
668
#elif !defined(NO_ASM)
669
669
# if !defined(__PIC__)
670
 
           asm volatile("pusha                             \n"
671
 
                "mov    pAsmStart, %%ecx           \n"  // = pStart
672
 
                "mov    $0, %%edx                  \n"          // The CRC
673
 
                "mov    dwAsmHeight, %%eax         \n"  // = y
674
 
                "0:                                \n" //l2:
675
 
                "mov    dwAsmdwBytesPerLine, %%ebx \n"  // = x
676
 
                "sub    $4, %%ebx                  \n"
677
 
                "1:                                \n" //l1:
678
 
                "mov    (%%ecx,%%ebx), %%esi       \n"
679
 
                "xor %%ebx, %%esi                  \n"
680
 
                "rol $4, %%edx                     \n"
681
 
                "add %%esi, %%edx                  \n"
682
 
                "sub    $4, %%ebx                  \n"
683
 
                "jge 1b                            \n" //jge l1
684
 
                "xor %%eax, %%esi                  \n"
685
 
                "add %%esi, %%edx                  \n"
686
 
                "add dwAsmPitch, %%ecx             \n"
687
 
                "dec %%eax                         \n"
688
 
                "jge 0b                            \n" //jge l2
 
670
           asm volatile("pusha                        \n"
 
671
                "mov    %[pAsmStart], %%ecx           \n"  // = pStart
 
672
                "mov    $0, %%edx                     \n"          // The CRC
 
673
                "mov    %[dwAsmHeight], %%eax         \n"  // = y
 
674
                "0:                                   \n" //l2:
 
675
                "mov    %[dwAsmdwBytesPerLine], %%ebx \n"  // = x
 
676
                "sub    $4, %%ebx                     \n"
 
677
                "1:                                   \n" //l1:
 
678
                "mov    (%%ecx,%%ebx), %%esi          \n"
 
679
                "xor %%ebx, %%esi                     \n"
 
680
                "rol $4, %%edx                        \n"
 
681
                "add %%esi, %%edx                     \n"
 
682
                "sub    $4, %%ebx                     \n"
 
683
                "jge 1b                               \n" //jge l1
 
684
                "xor %%eax, %%esi                     \n"
 
685
                "add %%esi, %%edx                     \n"
 
686
                "add %[dwAsmPitch], %%ecx             \n"
 
687
                "dec %%eax                            \n"
 
688
                "jge 0b                               \n" //jge l2
689
689
                
690
 
                "mov    %%edx, dwAsmCRC            \n"
691
 
                "popa                              \n"
692
 
                :
693
 
                :
 
690
                "mov    %%edx, %[dwAsmCRC]            \n"
 
691
                "popa                                 \n"
 
692
                : [pAsmStart]"+m"(pAsmStart), [dwAsmHeight]"+m"(dwAsmHeight), [dwAsmCRC]"=m"(dwAsmCRC)
 
693
                : [dwAsmdwBytesPerLine]"m"(dwAsmdwBytesPerLine), [dwAsmPitch]"m"(dwAsmPitch)
694
694
                : "memory", "cc"
695
695
                );
696
696
# else // defined(__PIC__)