[svn] / branches / dev-api-4 / xvidcore / src / bitstream / bitstream.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/bitstream/bitstream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1058, Mon Jun 9 19:42:25 2003 UTC revision 1067, Thu Jun 12 14:16:41 2003 UTC
# Line 20  Line 20 
20   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   *   *
23   * $Id: bitstream.c,v 1.39.2.12 2003-06-09 19:42:18 edgomez Exp $   * $Id: bitstream.c,v 1.39.2.13 2003-06-12 14:16:41 Isibaar Exp $
24   *   *
25   ****************************************************************************/   ****************************************************************************/
26    
# Line 36  Line 36 
36  static uint32_t __inline  static uint32_t __inline
37  log2bin(uint32_t value)  log2bin(uint32_t value)
38  {  {
 /* Changed by Chenm001 */  
 #if !defined(_MSC_VER)  
39          int n = 0;          int n = 0;
40    
41          while (value) {          while (value) {
# Line 45  Line 43 
43                  n++;                  n++;
44          }          }
45          return n;          return n;
 #else  
         __asm {  
                 bsr eax, value  
                 inc eax  
         }  
 #endif  
46  }  }
47    
48    

Legend:
Removed from v.1058  
changed lines
  Added in v.1067

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4