?? am_util_bits.h
字號:
#ifndef AM_UTIL_BITS_INCLUDE#define AM_UTIL_BITS_INCLUDE#ifdef __cplusplus /* Allow #include in a C++ file. */extern "C" {#endif/* (c) Copyright Motorola 1996, All rights reserved. Motorola Confidential Proprietary Contains confidential proprietary information of Motorola, Inc. Reverse engineering is prohibited. The copyright notice does not imply publication. DESCRIPTION This file defines bit operations used all over AM******************************* REVISION HISTORY ****************************** Date Author Reference Number======== ======== ================00-08-09 mtaraba CR - CSGce55882 Eliminate file gsm.h from audio manager98-02-15 gswanson PR - CSGce12607 Add DAI support to AM - cast all incoming masks to long words before masking them with a long word (this fixes a compiler warning). - update to the coding standard.*/#include <SUAPI/suapi.h> /* bit operation functions */#define set_bit( _mask, _bit ) ( (_mask) = ((UINT32) (_mask)) | ( 1L << _bit ) ) #define clear_bit( _mask, _bit ) ( (_mask) = ((UINT32) (_mask)) & ( ~ ( 1L << _bit ))) #define read_bit( _mask, _bit ) (( (_mask) & ( 1L << _bit ) ) ? 1 : 0)#define toggle_bit( _mask, _bit) ((_mask) = ((UINT32) (_mask)) ^ ( 1L << _bit ) )#ifdef __cplusplus /* Allow #include in a C++ file. */}#endif#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
減小字號
Ctrl + -