internal

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CeilToPowerOfTwo

func CeilToPowerOfTwo(n int) int

CeilToPowerOfTwo returns the least power of two integer value greater than or equal to n.

func FloorToPowerOfTwo

func FloorToPowerOfTwo(n int) int

FloorToPowerOfTwo returns the greatest power of two integer value less than or equal to n.

func Identity

func Identity(n int) int

Identity is identity.

func IsPowerOfTwo

func IsPowerOfTwo(n int) bool

IsPowerOfTwo reports whether given integer is a power of two.

func LogarithmicRange

func LogarithmicRange(min, max int, cb func(int))

LogarithmicRange iterates from ceiled to power of two min to max, calling cb on each iteration.

Types

type NoteQueue added in v0.1.3

type NoteQueue struct {
	// contains filtered or unexported fields
}

func NewNoteQueue added in v0.1.3

func NewNoteQueue() NoteQueue

func (*NoteQueue) Add added in v0.1.3

func (q *NoteQueue) Add(note interface{}) (one bool)

func (*NoteQueue) ForEach added in v0.1.3

func (q *NoteQueue) ForEach(iter func(note interface{}) error) error

Jump to

Keyboard shortcuts

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