fp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: ISC Imports: 0 Imported by: 0

Documentation

Overview

Package fp implements floating-point arithmetic operations for the Oberon RISC emulator.

See http://people.inf.ethz.ch/wirth/ProjectOberon/PO.Computer.pdf section 16.3. "Floating-point arithmetic".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x, y uint32, u, v bool) uint32

func Div

func Div(x, y uint32) uint32

func Mul

func Mul(x, y uint32) uint32

Types

type IdivResult

type IdivResult struct {
	Quot, Rem uint32
}

func Idiv

func Idiv(x, y uint32, signedDiv bool) IdivResult

Directories

Path Synopsis
numbers
Command numbers generates a Go file containing a slice of uint32 numbers as test input for the Oberon RISC emulator's floating-point arithmetic operations.
Command numbers generates a Go file containing a slice of uint32 numbers as test input for the Oberon RISC emulator's floating-point arithmetic operations.
v2go
Command v2go translates Verilog source code to Go.
Command v2go translates Verilog source code to Go.

Jump to

Keyboard shortcuts

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