i64

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2015 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

The package i64 provides basic functions supporting the int64 type.

Index

Constants

View Source
const (
	Min = -1 << 63
	Max = 1<<63 - 1
)

Minimum and maximum value for the int64 type.

Variables

This section is empty.

Functions

func Add

func Add(x, y int64) (z int64, overflow bool)

Add adds x and y and detects overflow.

func Sub

func Sub(x, y int64) (z int64, overflow bool)

Sub computes x-y and detects overflow.

Types

This section is empty.

Jump to

Keyboard shortcuts

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