uint128

package module
v0.0.0-...-5745f1b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2014 License: MIT Imports: 0 Imported by: 7

README

This package implements some basic math (multiplication and addition)
and bitwise operations for unsigned 128 bit integers in go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uint128

type Uint128 struct {
	H, L uint64
}

func (Uint128) Add

func (augend Uint128) Add(addend Uint128) Uint128

func (Uint128) And

func (x Uint128) And(y Uint128) Uint128

func (Uint128) Mult

func (multiplicand Uint128) Mult(multiplier Uint128) Uint128

func (Uint128) Or

func (x Uint128) Or(y Uint128) Uint128

func (Uint128) ShiftLeft

func (i Uint128) ShiftLeft(bits uint) Uint128

func (Uint128) ShiftRight

func (i Uint128) ShiftRight(bits uint) Uint128

func (Uint128) Xor

func (x Uint128) Xor(y Uint128) Uint128

Jump to

Keyboard shortcuts

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