sentinels

package
v0.0.0-...-972597a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Unlicense Imports: 1 Imported by: 0

README

Optimizations based on "There’s treasure everywhere" by Andrei Alexandrescu (https://vimeo.com/171927600).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PartitionBreak

func PartitionBreak(items []int, pivot int) int

requires -gcflags="-B" to be effective

func PartitionSentinel

func PartitionSentinel(items []int, pivot int) int

requires -gcflags="-B" to be effective

func SearchBasic

func SearchBasic(items []int, elem int) int

func SearchBreak

func SearchBreak(items []int, elem int) (i int)

requires -gcflags="-B" to be effective

func SearchSentinel

func SearchSentinel(items []int, elem int) (i int)

requires -gcflags="-B" to be effective

func SearchUnsafe

func SearchUnsafe(items []int, elem int) (i int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL