Leading and trailing zero counts: the argument type, the two calls, and the clz dispatch table. More...
#include "mmgr.h"Go to the source code of this file.
Data Structures | |
| struct | ClzCfg |
| Argument for both clz calls: the value to count zeros in. More... | |
| struct | ClzNs |
| Type of the clz dispatch table. More... | |
Functions | |
| embed_iword | mmgr_clz_lead (const ClzCfg *args) |
| Counts the zero bits above the highest set bit of args->val. | |
| embed_iword | mmgr_clz_trail (const ClzCfg *args) |
| Counts the zero bits below the lowest set bit of args->val. | |
Variables | |
| static const ClzNs | clz |
| Dispatch table instance named clz, with each member set to its mmgr_clz_ function. | |
Leading and trailing zero counts: the argument type, the two calls, and the clz dispatch table.
Definition in file clz.h.
| embed_iword mmgr_clz_lead | ( | const ClzCfg * | args | ) |
Counts the zero bits above the highest set bit of args->val.
| [in] | args | Value to measure [BORROWS]. |
References mmgr_clz_lead().
Referenced by mmgr_clz_lead().
| embed_iword mmgr_clz_trail | ( | const ClzCfg * | args | ) |
Counts the zero bits below the lowest set bit of args->val.
| [in] | args | Value to measure [BORROWS]. |
References mmgr_clz_trail().
Referenced by mmgr_clz_trail().