Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
qpset.h File Reference
platform-independent priority sets of 8 or 64 elements. More...
Go to the source code of this file.
Data Structures | |
| class | QPSet8 |
| Priority Set of up to 8 elements for building various schedulers, but also useful as a general set of up to 8 elements of any kind. More... | |
| class | QPSet64 |
| Priority Set of up to 64 elements for building various schedulers, but also useful as a general set of up to 64 elements of any kind. More... | |
Variables | |
| uint8_t const Q_ROM Q_ROM_VAR | QF_log2Lkup [256] |
| Lookup table for (log2(n) + 1), where n is the index into the table. | |
| uint8_t const Q_ROM Q_ROM_VAR | QF_pwr2Lkup [65] |
| Lookup table for (1 << ((n-1) % 8)), where n is the index into the table. | |
| uint8_t const Q_ROM Q_ROM_VAR | QF_invPwr2Lkup [65] |
| Lookup table for ~(1 << ((n-1) % 8)), where n is the index into the table. | |
| uint8_t const Q_ROM Q_ROM_VAR | QF_div8Lkup [65] |
| Lookup table for (n-1)/8. | |
Detailed Description
platform-independent priority sets of 8 or 64 elements.
This header file must be included in those QF ports that use the cooperative multitasking QF scheduler or the QK.
Definition in file qpset.h.
Variable Documentation
| uint8_t const Q_ROM Q_ROM_VAR QF_div8Lkup[65] |
Lookup table for (n-1)/8.
- Note:
- Index range n = 0..64. The first index (n == 0) should never be used.
Definition at line 59 of file qf_pwr2.cpp.
| uint8_t const Q_ROM Q_ROM_VAR QF_invPwr2Lkup[65] |
Lookup table for ~(1 << ((n-1) % 8)), where n is the index into the table.
- Note:
- Index range n = 0..64. The first index (n == 0) should never be used.
Definition at line 47 of file qf_pwr2.cpp.
| uint8_t const Q_ROM Q_ROM_VAR QF_log2Lkup[256] |
Lookup table for (log2(n) + 1), where n is the index into the table.
This lookup delivers the 1-based number of the most significant 1-bit of a byte.
- Note:
- Index range n = 0..255. The first index (n == 0) should never be used.
Definition at line 35 of file qf_log2.cpp.
| uint8_t const Q_ROM Q_ROM_VAR QF_pwr2Lkup[65] |
Lookup table for (1 << ((n-1) % 8)), where n is the index into the table.
- Note:
- Index range n = 0..64. The first index (n == 0) should never be used.
Definition at line 35 of file qf_pwr2.cpp.
Generated on Tue Jul 12 2022 20:22:36 by
1.7.2