Files
avo/examples
Michael McLoughlin 8f3c4ea0bf examples: cpu feature checks (#171)
Add necessary feature checks to the dot and geohash examples to prevent illegal instruction errors.

Fixes #170 #153
2021-04-06 22:24:58 -07:00
..
2019-04-13 22:53:13 -05:00
2021-04-06 22:24:58 -07:00
2019-04-13 22:53:13 -05:00
2019-09-16 11:01:48 -07:00
2019-04-13 22:53:13 -05:00
2019-09-16 11:01:48 -07:00

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: