--- nono/lib/bitops.cpp 2026/04/29 17:04:57 1.1 +++ nono/lib/bitops.cpp 2026/04/29 17:05:34 1.1.1.4 @@ -4,8 +4,14 @@ // Licensed under nono-license.txt // +// +// 各種ビット操作 +// + #include "bitops.h" +#if !defined(HAVE___BUILTIN_BITREVERSE) + // 8ビットを左右反転するためのテーブル const uint8 bitrev_table[256] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, @@ -41,3 +47,5 @@ const uint8 bitrev_table[256] = { 0x0f, 0x8f, 0x4f, 0xcf, 0x2f, 0xaf, 0x6f, 0xef, 0x1f, 0x9f, 0x5f, 0xdf, 0x3f, 0xbf, 0x7f, 0xff, }; + +#endif