Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
calebzulawski committed Dec 10, 2022
1 parent 5f3f46d commit e26c150
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions multiversion/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
/// Provides function multiversioning.
///
/// The annotated function is compiled multiple times, once for each target, and the
/// best target is selected at runtime.
///
/// Options:
/// * `targets`
/// * Takes a list of targets, such as `targets("x86_64+avx2", "x86_64+sse4.1")`.
Expand Down Expand Up @@ -109,9 +112,8 @@
/// # Notes on dispatcher performance
///
/// ### Feature detection is performed only once
/// The `direct` and `indirect` function version dispatcher performs function selection on the
/// first invocation. This is implemented with a static atomic variable containing the selected
/// function.
/// The `direct` and `indirect` dispatchers perform function selection on the first invocation.
/// This is implemented with a static atomic variable containing the selected function.
///
/// This implementation has a few benefits:
/// * The function selector is typically only invoked once. Subsequent calls are reduced to an
Expand Down

0 comments on commit e26c150

Please sign in to comment.