0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

ircd::utf: Fix syntax; comments. [ci skip]

This commit is contained in:
Jason Volk 2021-04-11 14:56:24 -07:00
parent eeadc15319
commit 8c65e75046

View file

@ -463,14 +463,14 @@ noexcept
const u32xN enc_2
{
(((codepoint >> 6) | 0xc0) & 0xff) // byte[0]
| ((((codepoint & 0x3f) | 0x80) &0xff) << 8) // byte[1]
| ((((codepoint & 0x3f) | 0x80) & 0xff) << 8) // byte[1]
};
const u32xN enc_3
{
(((codepoint >> 12) | 0xe0) & 0xff) | // byte[0]
(((((codepoint >> 6) & 0x3f) | 0x80) & 0xff) << 8) | // byte[1]
((((codepoint & 0x3f) | 0x80) & 0xff) << 16) // byte[3]
((((codepoint & 0x3f) | 0x80) & 0xff) << 16) // byte[2]
};
const u32xN enc_4