This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fr:software:homelab:library:bit [2010/03/25 09:47] – créée sdeniaud | fr:software:homelab:library:bit [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Bitwise operations library contains a set of macro functions to do common | + | La librairie des opérations |
- | Bit index is used to specify the bit in the binary number. Indexes are counted from zero, where zero represents the least significant | + | L'index du bit est utilisé pour spécifier le bit dans un nombre binaire. Les indexes débutent à partir de zéro, où zéro représente le plus petit bit significatif |
- | ===== Funktsioonid | + | ===== Fonctions |
* **// | * **// | ||
- | | + | |
- | * //bit// - Bit index. | + | * //bit// - Index du bit. |
- | * Returns | + | * Renvoi le bit mask. |
* **// | * **// | ||
- | | + | |
* //value// - Variable. | * //value// - Variable. | ||
- | * //bit// - Bit index. | + | * //bit// - Index du bit. |
* **// | * **// | ||
- | | + | |
* //value// - Variable. | * //value// - Variable. | ||
- | * //bit// - Bit index. | + | * //bit// - Index du bit. |
* **// | * **// | ||
- | | + | |
* //value// - Variable. | * //value// - Variable. | ||
- | * //bit// - Bit index. | + | * //bit// - Index du bit. |
- | * //state// - State (//true// or //false//). | + | * //state// - Etat (//vrai// ou //faux//). |
* **// | * **// | ||
- | | + | |
* //value// - Variable. | * //value// - Variable. | ||
- | * //bit// - Bit index. | + | * //bit// - Index du bit. |
* **// | * **// | ||
- | | + | |
* //value// - Variable. | * //value// - Variable. | ||
- | * //bit// - Bit index. | + | * //bit// - Index du bit. |
- | * Returns boolean value //true// when bit is set and //false// when bit is cleared. | + | * Retourne la valeur booléenne |
* **// | * **// | ||
- | Checks whether a specified | + | |
* //value// - Variable. | * //value// - Variable. | ||
- | * //bit// - Bit index. | + | * //bit// - Index du bit. |
- | * Returns boolean value //true// when bit is cleared and //false// when bit is set. | + | * Retourne la valeur booléenne |
- | ===== Example | + | ===== Exemple |
- | Setting up a third bit in the 8-bit variable //b// and inverting of the last one. | + | Initialise le troisième |
<code c> | <code c> | ||
Line 63: | Line 63: | ||
===== Source ===== | ===== Source ===== | ||
- | The following is a shortened | + | Le code suivant est une version |
<code c> | <code c> |