vbox的更動 13511 路徑 trunk/include
- 時間撮記:
- 2008-10-23 上午07:20:49 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/iprt/asm.h
r12680 r13511 2642 2642 * @param pv The pointer value to assign to *ppv. 2643 2643 */ 2644 DECLINLINE(void *) ASMAtomicXchgPtr(void * volatile *ppv, void *pv)2644 DECLINLINE(void *) ASMAtomicXchgPtr(void * volatile *ppv, const void *pv) 2645 2645 { 2646 2646 #if ARCH_BITS == 32 … … 2665 2665 #define ASMAtomicXchgHandle(ph, hNew, phRes) \ 2666 2666 do { \ 2667 *(void **)(phRes) = ASMAtomicXchgPtr((void * volatile *)(ph), ( void *)(hNew)); \2667 *(void **)(phRes) = ASMAtomicXchgPtr((void * volatile *)(ph), (const void *)(hNew)); \ 2668 2668 AssertCompile(sizeof(*ph) == sizeof(void *)); \ 2669 2669 AssertCompile(sizeof(*phRes) == sizeof(void *)); \ … … 2906 2906 * @param pvOld The old value to *ppv compare with. 2907 2907 */ 2908 DECLINLINE(bool) ASMAtomicCmpXchgPtr(void * volatile *ppv, void *pvNew,void *pvOld)2908 DECLINLINE(bool) ASMAtomicCmpXchgPtr(void * volatile *ppv, const void *pvNew, const void *pvOld) 2909 2909 { 2910 2910 #if ARCH_BITS == 32 … … 3220 3220 * @param ppvOld Pointer store the old value at. 3221 3221 */ 3222 DECLINLINE(bool) ASMAtomicCmpXchgExPtr(void * volatile *ppv, void *pvNew,void *pvOld, void **ppvOld)3222 DECLINLINE(bool) ASMAtomicCmpXchgExPtr(void * volatile *ppv, const void *pvNew, const void *pvOld, void **ppvOld) 3223 3223 { 3224 3224 #if ARCH_BITS == 32 … … 4236 4236 * @param pv The pointer value to assigne to *ppv. 4237 4237 */ 4238 DECLINLINE(void) ASMAtomicWritePtr(void * volatile *ppv, void *pv)4238 DECLINLINE(void) ASMAtomicWritePtr(void * volatile *ppv, const void *pv) 4239 4239 { 4240 4240 #if ARCH_BITS == 32 … … 4255 4255 * @param pv The pointer value to assigne to *ppv. 4256 4256 */ 4257 DECLINLINE(void) ASMAtomicUoWritePtr(void * volatile *ppv, void *pv)4257 DECLINLINE(void) ASMAtomicUoWritePtr(void * volatile *ppv, const void *pv) 4258 4258 { 4259 4259 #if ARCH_BITS == 32 … … 4277 4277 #define ASMAtomicWriteHandle(ph, hNew) \ 4278 4278 do { \ 4279 ASMAtomicWritePtr((void * volatile *)(ph), ( void *)hNew); \4279 ASMAtomicWritePtr((void * volatile *)(ph), (const void *)hNew); \ 4280 4280 AssertCompile(sizeof(*ph) == sizeof(void*)); \ 4281 4281 } while (0) … … 4292 4292 #define ASMAtomicUoWriteHandle(ph, hNew) \ 4293 4293 do { \ 4294 ASMAtomicUoWritePtr((void * volatile *)(ph), ( void *)hNew); \4294 ASMAtomicUoWritePtr((void * volatile *)(ph), (const void *)hNew); \ 4295 4295 AssertCompile(sizeof(*ph) == sizeof(void*)); \ 4296 4296 } while (0)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器