am_util_bits.h

来自「Motorola synergy audio component」· C头文件 代码 · 共 49 行

H
49
字号
#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 + =
减小字号Ctrl + -
显示快捷键?