Skip to content

Conversation

lorentey
Copy link
Member

This experimental PR builds on #41485 and adopts the Clock APIs from SE-0329 in the Swift Benchmark Suite.

…ntations

These used to set the clock id incorrectly, leading to zero results. Fix that and also make the underlying entry point abort if it gets an invalid ID, preventing this from reoccurring.
Having a direct initializer in the ABI is critically important — otherwise we wouldn’t be able to add back deployable conversion initializers in the future (without going through unnecessary overhead).
`Words.Iterator.next()` used to call `Int128(truncatingIfNeeded:)`, which in turn iterates over words, leading to an infinite recursion.

Implement half-width multiplication from scratch instead of masking off the full width results.
@lorentey lorentey requested a review from phausler February 20, 2022 02:54
@lorentey
Copy link
Member Author

@swift-ci benchmark

@lorentey
Copy link
Member Author

Note that we may need to polyfill the new types/methods in the benchmarking tool before landing this -- we may want to continue being able to run benchmarks on releases that don't have SE-0329.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant