XWOS API
4.0
XWOS C/C++ API参考手册
|
XWOS通用库:位图原子操作 更多...
函数 | |
bool | xwbmpaop_t1i (atomic_xwbmp_t *bmp, xwsq_t idx) |
XWOS AOPLIB:测试位图中的某位是否被置1 | |
void | xwbmpaop_s1i (atomic_xwbmp_t *bmp, xwsq_t idx) |
XWOS AOPLIB:将位图中某位置1 | |
void | xwbmpaop_c0i (atomic_xwbmp_t *bmp, xwsq_t idx) |
XWOS AOPLIB:将位图中某位清0 | |
void | xwbmpaop_x1i (atomic_xwbmp_t *bmp, xwsq_t idx) |
XWOS AOPLIB:将位图中某位翻转 | |
xwer_t | xwbmpaop_t0i_then_s1i (atomic_xwbmp_t *bmp, xwsq_t idx) |
XWOS AOPLIB:测试位图中某位是否为0,如果是,就将它置1 | |
xwer_t | xwbmpaop_t1i_then_c0i (atomic_xwbmp_t *bmp, xwsq_t idx) |
XWOS AOPLIB:测试位图中某位是否为1,如果是,就将它清0 | |
xwssq_t | xwbmpaop_fls_then_c0i (atomic_xwbmp_t *bmp, xwsz_t num) |
XWOS AOPLIB:从最高位起查找位图中第一个为1的位并将它清0 | |
xwssq_t | xwbmpaop_flz_then_s1i (atomic_xwbmp_t *bmp, xwsz_t num) |
XWOS AOPLIB:从最高位起查找位图中第一个为0的位并将它置1 | |
xwssq_t | xwbmpaop_ffs_then_c0i (atomic_xwbmp_t *bmp, xwsz_t num) |
XWOS AOPLIB:从最低位起查找位图中第一个为1的位并将它清0 | |
xwssq_t | xwbmpaop_ffz_then_s1i (atomic_xwbmp_t *bmp, xwsz_t num) |
XWOS AOPLIB:从最低位起查找位图中第一个为0的位并将它置1 | |
XWOS通用库:位图原子操作
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
在文件 bmp.c 中定义.