VirtualBox

忽略:
時間撮記:
2012-4-26 下午12:17:23 (13 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
77639
訊息:

crOpenGL: switch to using ASMBit* for gl resource tracking

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_bits.h

    r41057 r41071  
    6565}
    6666
    67 static INLINE int CHECKBIT( const unsigned int *b, const unsigned int bit )
    68 {
    69     unsigned int node32 = bit >> 5;
    70     unsigned int node = bit & 0x1f;
    71 
    72     return !!(b[node32] & (1 < node));
    73 }
    74 
    75 static INLINE void CLEARBIT( unsigned int *b, const unsigned int bit )
    76 {
    77     unsigned int node32 = bit >> 5;
    78     unsigned int node = bit & 0x1f;
    79 
    80     b[node32] &=  ~(1 << node);
    81 }
    82 
    83 static INLINE void SETBIT( unsigned int *b, const unsigned int bit )
    84 {
    85     unsigned int node32 = bit >> 5;
    86     unsigned int node = bit & 0x1f;
    87 
    88     b[node32] |=  (1 << node);
    89 }
    90 
    91 static INLINE int HASBITS( const unsigned int *b )
    92 {
    93     int j;
    94 
    95     for (j=0;j<CR_MAX_BITARRAY;j++)
    96         if (b[j])
    97             return 1;
    98 
    99     return 0;
    100 }
    101 
    102 static INLINE void CLEARBITS( unsigned int *b )
    103 {
    104     int j;
    105 
    106     for (j=0;j<CR_MAX_BITARRAY;j++)
    107         b[j] = 0;
    108 }
    109 
    110 
    11167#ifdef __cplusplus
    11268}
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette