This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
fr:software:homelab:library:bit [2010/03/25 09:53] – sdeniaud | fr:software:homelab:library:bit [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
L' | L' | ||
- | ===== Fonction | + | ===== 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 |
===== Exemple ===== | ===== 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> |