public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] locale: Remove ununsed wctype_table_get function
@ 2022-03-16 18:01 Adhemerval Zanella
0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:01 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=642dacdd72200ddfcb9d66b83a8158878090b6ab
commit 642dacdd72200ddfcb9d66b83a8158878090b6ab
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:51:20 2022 -0300
locale: Remove ununsed wctype_table_get function
Diff:
---
locale/programs/ld-ctype.c | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index fb0bc80b3b..e85820d335 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -3354,33 +3354,6 @@ wctype_table_init (struct wctype_table *t)
t->level3_alloc = t->level3_size = 0;
}
-/* Retrieve an entry. */
-static inline int
-wctype_table_get (struct wctype_table *t, uint32_t wc)
-{
- uint32_t index1 = wc >> (t->q + t->p + 5);
- if (index1 < t->level1_size)
- {
- uint32_t lookup1 = t->level1[index1];
- if (lookup1 != EMPTY)
- {
- uint32_t index2 = ((wc >> (t->p + 5)) & ((1 << t->q) - 1))
- + (lookup1 << t->q);
- uint32_t lookup2 = t->level2[index2];
- if (lookup2 != EMPTY)
- {
- uint32_t index3 = ((wc >> 5) & ((1 << t->p) - 1))
- + (lookup2 << t->p);
- uint32_t lookup3 = t->level3[index3];
- uint32_t index4 = wc & 0x1f;
-
- return (lookup3 >> index4) & 1;
- }
- }
- }
- return 0;
-}
-
/* Add one entry. */
static void
wctype_table_add (struct wctype_table *t, uint32_t wc)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/azanella/clang] locale: Remove ununsed wctype_table_get function
@ 2022-03-15 18:39 Adhemerval Zanella
0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:39 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=642dacdd72200ddfcb9d66b83a8158878090b6ab
commit 642dacdd72200ddfcb9d66b83a8158878090b6ab
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:51:20 2022 -0300
locale: Remove ununsed wctype_table_get function
Diff:
---
locale/programs/ld-ctype.c | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index fb0bc80b3b..e85820d335 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -3354,33 +3354,6 @@ wctype_table_init (struct wctype_table *t)
t->level3_alloc = t->level3_size = 0;
}
-/* Retrieve an entry. */
-static inline int
-wctype_table_get (struct wctype_table *t, uint32_t wc)
-{
- uint32_t index1 = wc >> (t->q + t->p + 5);
- if (index1 < t->level1_size)
- {
- uint32_t lookup1 = t->level1[index1];
- if (lookup1 != EMPTY)
- {
- uint32_t index2 = ((wc >> (t->p + 5)) & ((1 << t->q) - 1))
- + (lookup1 << t->q);
- uint32_t lookup2 = t->level2[index2];
- if (lookup2 != EMPTY)
- {
- uint32_t index3 = ((wc >> 5) & ((1 << t->p) - 1))
- + (lookup2 << t->p);
- uint32_t lookup3 = t->level3[index3];
- uint32_t index4 = wc & 0x1f;
-
- return (lookup3 >> index4) & 1;
- }
- }
- }
- return 0;
-}
-
/* Add one entry. */
static void
wctype_table_add (struct wctype_table *t, uint32_t wc)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/azanella/clang] locale: Remove ununsed wctype_table_get function
@ 2022-03-11 17:23 Adhemerval Zanella
0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2022-03-11 17:23 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5d573ff3a34d7ad844e913d9f0ebf639b000be0d
commit 5d573ff3a34d7ad844e913d9f0ebf639b000be0d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:51:20 2022 -0300
locale: Remove ununsed wctype_table_get function
Diff:
---
locale/programs/ld-ctype.c | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index fb0bc80b3b..e85820d335 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -3354,33 +3354,6 @@ wctype_table_init (struct wctype_table *t)
t->level3_alloc = t->level3_size = 0;
}
-/* Retrieve an entry. */
-static inline int
-wctype_table_get (struct wctype_table *t, uint32_t wc)
-{
- uint32_t index1 = wc >> (t->q + t->p + 5);
- if (index1 < t->level1_size)
- {
- uint32_t lookup1 = t->level1[index1];
- if (lookup1 != EMPTY)
- {
- uint32_t index2 = ((wc >> (t->p + 5)) & ((1 << t->q) - 1))
- + (lookup1 << t->q);
- uint32_t lookup2 = t->level2[index2];
- if (lookup2 != EMPTY)
- {
- uint32_t index3 = ((wc >> 5) & ((1 << t->p) - 1))
- + (lookup2 << t->p);
- uint32_t lookup3 = t->level3[index3];
- uint32_t index4 = wc & 0x1f;
-
- return (lookup3 >> index4) & 1;
- }
- }
- }
- return 0;
-}
-
/* Add one entry. */
static void
wctype_table_add (struct wctype_table *t, uint32_t wc)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/azanella/clang] locale: Remove ununsed wctype_table_get function
@ 2022-03-10 19:22 Adhemerval Zanella
0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2022-03-10 19:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fad107c441f74dc8769eb53a00741f956e0eeb7c
commit fad107c441f74dc8769eb53a00741f956e0eeb7c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Mar 10 09:51:20 2022 -0300
locale: Remove ununsed wctype_table_get function
Diff:
---
locale/programs/ld-ctype.c | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index fb0bc80b3b..e85820d335 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -3354,33 +3354,6 @@ wctype_table_init (struct wctype_table *t)
t->level3_alloc = t->level3_size = 0;
}
-/* Retrieve an entry. */
-static inline int
-wctype_table_get (struct wctype_table *t, uint32_t wc)
-{
- uint32_t index1 = wc >> (t->q + t->p + 5);
- if (index1 < t->level1_size)
- {
- uint32_t lookup1 = t->level1[index1];
- if (lookup1 != EMPTY)
- {
- uint32_t index2 = ((wc >> (t->p + 5)) & ((1 << t->q) - 1))
- + (lookup1 << t->q);
- uint32_t lookup2 = t->level2[index2];
- if (lookup2 != EMPTY)
- {
- uint32_t index3 = ((wc >> 5) & ((1 << t->p) - 1))
- + (lookup2 << t->p);
- uint32_t lookup3 = t->level3[index3];
- uint32_t index4 = wc & 0x1f;
-
- return (lookup3 >> index4) & 1;
- }
- }
- }
- return 0;
-}
-
/* Add one entry. */
static void
wctype_table_add (struct wctype_table *t, uint32_t wc)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-16 18:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 18:01 [glibc/azanella/clang] locale: Remove ununsed wctype_table_get function Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2022-03-15 18:39 Adhemerval Zanella
2022-03-11 17:23 Adhemerval Zanella
2022-03-10 19:22 Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).