Commit d31dbb9
authored
[libc][wctype] Move classification lookup tables to a cpp file (#174993)
#170525
Previously, lookup tables were defined in a header so that they can be
constexpr, but this lead to each translation unit having it's own copy,
bloating the library size. Looking at current usages of wctype
functions, they are always used at runtime, so there's no benefit of
having them constexpr, so I'm moving them to a cpp file, so that there's
only a single copy in the library.1 parent a76f638 commit d31dbb9
File tree
4 files changed
+3749
-3697
lines changed- libc
- src/__support/wctype
- utils/wctype_utils/classification
4 files changed
+3749
-3697
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments