diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2019-02-07 19:09:50 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-02-12 12:58:50 +0100 |
| commit | 8eb6703879cf601d1e5058592fed6f53bdb04780 (patch) | |
| tree | 0d8e984c1d67e3f30695ba447fa9add0a37b665f /src/ref | |
| parent | ec5c219519c4ebeb83e43725f9de3162bf7d5552 (diff) | |
| download | lilliput-ae-implem-8eb6703879cf601d1e5058592fed6f53bdb04780.tar.xz | |
Reformulation de l'implémentation de α₃
- Changement de l'implémentation de référence en conséquence (les
compilateurs savent très bien optimiser les deux shifts en un seul
AND)
- Retouche du phrasé : "multiplication αᵢ" plutôt que "αᵢ
multiplication". Je n'ai pas de pointeurs vers une règle de
grammaire particulière, mais c'est par comparaison avec "Planet
Earth" ou "Operation Overlord".
Diffstat (limited to 'src/ref')
| -rw-r--r-- | src/ref/tweakey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ref/tweakey.c b/src/ref/tweakey.c index 319ca49..45d938f 100644 --- a/src/ref/tweakey.c +++ b/src/ref/tweakey.c @@ -69,7 +69,7 @@ static uint8_t _M1(uint8_t x) static uint8_t _M2(uint8_t x) { - return x<<6 ^ (x & 0xf8) ^ x>>6; + return x<<6 ^ (x>>3)<<3 ^ x>>6; } static uint8_t _M3(uint8_t x) |
