XWOS API
4.0
XWOS C/C++ API参考手册
|
XWOS通用库:位操作 更多...
函数 | |
xwssq_t | xwbop_ffz8 (xwu8_t x) |
xwssq_t | xwbop_flz8 (xwu8_t x) |
xwsz_t | xwbop_weight8 (xwu8_t x) |
xwssq_t | xwbop_ffz16 (xwu16_t x) |
xwssq_t | xwbop_flz16 (xwu16_t x) |
xwsz_t | xwbop_weight16 (xwu16_t x) |
xwssq_t | xwbop_ffz32 (xwu32_t x) |
xwssq_t | xwbop_flz32 (xwu32_t x) |
xwsz_t | xwbop_weight32 (xwu32_t x) |
xwssq_t | xwbop_ffz64 (xwu64_t x) |
xwssq_t | xwbop_flz64 (xwu64_t x) |
xwsz_t | xwbop_weight64 (xwu64_t x) |
void | xwbmpop_assign (xwbmp_t *bmp, xwbmp_t opd[], xwsz_t num) |
XWOS BOPLIB:赋值操作数到位图 | |
xwssq_t | xwbmpop_cmp (xwbmp_t *bmp, xwbmp_t opd[], xwsz_t num) |
XWOS BOPLIB:从数组最高元素开始比较两个位图的数值大小 | |
void | xwbmpop_s1all (xwbmp_t *bmp, xwsq_t num) |
XWOS BOPLIB:将位图中所有位置1 | |
void | xwbmpop_c0all (xwbmp_t *bmp, xwsq_t num) |
XWOS BOPLIB:将位图中所有位清0 | |
void | xwbmpop_s1m (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:将位图中掩码部分置1 | |
void | xwbmpop_c0m (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:将位图中掩码部分清0 | |
void | xwbmpop_x1m (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:将位图中掩码部分翻转 | |
bool | xwbmpop_t1ma (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否全部为1 | |
bool | xwbmpop_t1ma_then_c0m (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否全部为1,如果是,就将掩码部分全部清0 | |
bool | xwbmpop_t1mo (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否至少有一位为1 | |
bool | xwbmpop_t1mo_then_c0m (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否至少有一位为1,如果是,就将掩码部分全部清0 | |
bool | xwbmpop_t0ma (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否全部为0 | |
bool | xwbmpop_t0ma_then_s1m (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否全部为0,如果是,就将掩码部分全部置1 | |
bool | xwbmpop_t0mo (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否至少有一位为0 | |
bool | xwbmpop_t0mo_then_s1m (xwbmp_t *bmp, xwbmp_t msk[], xwsz_t num) |
XWOS BOPLIB:测试位图中掩码部分是否至少有一位为0,如果是,就将掩码部分全部置1 | |
void | xwbmpop_not (xwbmp_t *bmp, xwsz_t num) |
XWOS BOPLIB:将位图按位取反 | |
void | xwbmpop_and (xwbmp_t *bmp, xwbmp_t opd[], xwsz_t num) |
XWOS BOPLIB:将位图与操作数进行逐位“与”运算 | |
void | xwbmpop_or (xwbmp_t *bmp, xwbmp_t opd[], xwsz_t num) |
XWOS BOPLIB:将位图与操作数进行逐位“或”运算 | |
void | xwbmpop_xor (xwbmp_t *bmp, xwbmp_t opd[], xwsz_t num) |
XWOS BOPLIB:将位图与操作数进行逐位“异或”运算 | |
xwsz_t | xwbmpop_weight (xwbmp_t *bmp, xwsz_t num) |
XWOS BOPLIB:在位图中统计被置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/.
在文件 xwbop.c 中定义.