adx

package
v0.0.0-...-3878f85 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

THESE PACKAGES ARE FOR DEMONSTRATION PURPOSES ONLY!

THEY DO NOT NOT CONTAIN WORKING INTRINSICS!

See https://github.com/klauspost/intrinsics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddcarryxU32

func AddcarryxU32(c_in uint8, a uint32, b uint32, out *uint32) uint8

AddcarryxU32: Add unsigned 32-bit integers 'a' and 'b' with unsigned 8-bit carry-in 'c_in' (carry or overflow flag), and store the unsigned 32-bit result in 'out', and the carry-out in 'dst' (carry or overflow flag).

dst:out[31:0] := a[31:0] + b[31:0] + c_in;

Instruction: 'ADCX, ADOX'. Intrinsic: '_addcarryx_u32'. Requires ADX.

FIXME: Will likely need to be reworked (has pointer parameter).

func AddcarryxU64

func AddcarryxU64(c_in uint8, a uint64, b uint64, out *uint64) uint8

AddcarryxU64: Add unsigned 64-bit integers 'a' and 'b' with unsigned 8-bit carry-in 'c_in' (carry or overflow flag), and store the unsigned 64-bit result in 'out', and the carry-out in 'dst' (carry or overflow flag).

dst:out[63:0] := a[63:0] + b[63:0] + c_in;

Instruction: 'ADCX, ADOX'. Intrinsic: '_addcarryx_u64'. Requires ADX.

FIXME: Will likely need to be reworked (has pointer parameter).

Types

This section is empty.

Jump to

Keyboard shortcuts

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