mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
module: unicode: remove unused tolower transformations
With the previous patch this yields
$ size -G ./module/zfs.ko ./module/zfs.new.ko
text data bss total filename
2865126 1597982 755768 5218876 ./module/zfs.ko
2864038 1429784 755768 5049590 ./module/zfs.new.ko
-1088 -168198
-1k -164k
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #16704
This commit is contained in:
@@ -45,7 +45,9 @@ extern "C" {
|
||||
*/
|
||||
#define U8_STRCMP_CS (0x00000001)
|
||||
#define U8_STRCMP_CI_UPPER (0x00000002)
|
||||
#if 0
|
||||
#define U8_STRCMP_CI_LOWER (0x00000004)
|
||||
#endif
|
||||
|
||||
#define U8_CANON_DECOMP (0x00000010)
|
||||
#define U8_COMPAT_DECOMP (0x00000020)
|
||||
@@ -57,7 +59,9 @@ extern "C" {
|
||||
#define U8_STRCMP_NFKC (U8_COMPAT_DECOMP | U8_CANON_COMP)
|
||||
|
||||
#define U8_TEXTPREP_TOUPPER (U8_STRCMP_CI_UPPER)
|
||||
#ifdef U8_STRCMP_CI_LOWER
|
||||
#define U8_TEXTPREP_TOLOWER (U8_STRCMP_CI_LOWER)
|
||||
#endif
|
||||
|
||||
#define U8_TEXTPREP_NFD (U8_STRCMP_NFD)
|
||||
#define U8_TEXTPREP_NFC (U8_STRCMP_NFC)
|
||||
|
||||
@@ -27638,6 +27638,7 @@ static const uchar_t u8_case_common_b2_tbl[U8_UNICODE_LATEST + 1][2][256] = {
|
||||
|
||||
};
|
||||
|
||||
#ifdef U8_STRCMP_CI_LOWER
|
||||
static const u8_displacement_t u8_tolower_b3_tbl[
|
||||
U8_UNICODE_LATEST + 1][5][256] =
|
||||
{
|
||||
@@ -31422,6 +31423,7 @@ static const uchar_t u8_tolower_final_tbl[U8_UNICODE_LATEST + 1][2299] = {
|
||||
0x90, 0x91, 0x8F,
|
||||
},
|
||||
};
|
||||
#endif
|
||||
|
||||
static const u8_displacement_t u8_toupper_b3_tbl[
|
||||
U8_UNICODE_LATEST + 1][5][256] =
|
||||
|
||||
Reference in New Issue
Block a user