Commit Graph
5 Commits
Author SHA1 Message Date
Karoy Lorentey ffa4a58bc1 Update remaining copyright notices 2024-02-02 16:20:22 -08:00
Karoy Lorentey 0c002200bb [CollectionUtilities] Silence a warning on 32 bit platforms
It turns out `UInt.bitWidth` is getting too eagerly inlined, so conditions based on it trigger spurious “code will never be executed” warnings. Silence those by switching to looking at `MemoryLayout<UInt>`, which doesn’t get turned into a constant *that* early.
2023-05-18 18:32:41 -07:00
Karoy Lorentey 2453c1bc23 Also generate @usableFromInline attributes, as needed 2023-03-22 20:01:23 -07:00
Karoy Lorentey c287334a9b _CollectionsUtilities: Use gyb to allow defining these helpers as internal or public depending on COLLECTIONS_SINGLE_MODULE
This is a thoroughly disgusting solution, but needs must. 😞

Hopefully macros will let us eventually replace this mess.
2023-03-22 18:56:33 -07:00
Karoy Lorentey 68844ec6d9 Integer Tricks → IntegerTricks 2022-10-11 13:11:28 -07:00