examples

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

README

Examples

Simple functions:

  • add: Add two numbers. The "Hello World!" of avo.
  • sum: Sum an array of numbers.

Features:

  • args: Loading function arguments.
  • returns: Building return values.
  • complex: Working with complex{64,128} types.
  • data: Defining DATA sections.
  • ext: Interacting with types from external packages.
  • pragma: Apply compiler directives to generated functions.

"Real" examples:

Documentation

Overview

Package examples provides examples of avo usage.

Directories

Path Synopsis
Package add demonstrates an Add function in avo.
Package add demonstrates an Add function in avo.
Package args demonstrates how to load function arguments in avo.
Package args demonstrates how to load function arguments in avo.
Package complex shows how to work with complex types in avo.
Package complex shows how to work with complex types in avo.
Package data shows how to define DATA sections in avo.
Package data shows how to define DATA sections in avo.
Package dot implements vector dot product in avo.
Package dot implements vector dot product in avo.
Package ext is used as a target package in the external types example.
Package ext is used as a target package in the external types example.
Package fnv1a implements FNV-1a in avo.
Package fnv1a implements FNV-1a in avo.
Package geohash implements integer geohash encoding in avo.
Package geohash implements integer geohash encoding in avo.
Package md5x16 implements 16-lane parallel MD5 with AVX-512 instructions.
Package md5x16 implements 16-lane parallel MD5 with AVX-512 instructions.
Package pragma demonstrates the use of compiler directives.
Package pragma demonstrates the use of compiler directives.
Package returns demonstrates how to write function return values in avo.
Package returns demonstrates how to write function return values in avo.
Package sha1 implements the SHA-1 hash in avo.
Package sha1 implements the SHA-1 hash in avo.
Package stadtx implements Stadtx Hash
Package stadtx implements Stadtx Hash
Package sum sums a slice in avo.
Package sum sums a slice in avo.

Jump to

Keyboard shortcuts

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