Files
physics/blossomfile
T
2026-10-28 04:25:49 -05:00

91 lines
1.9 KiB
Plaintext

name: linear
gpid: malunal
semv: 1.0.0
options:
level: 2
requires:
- https://git.malunal.studio/sakura/std@v1.0.0
targets:
- name: linear
type: library
root: ./linear
deps:
- std.math
# The shapes of space, made of `linear`'s vectors, and the tests between them.
- name: geometry
type: library
root: ./geometry
deps:
- linear
- std.math
# Times what `linear` does against the same written a number at a time; see
# its header.
- name: linear.bench
type: program
level: ${level}
deps:
- linear
- std.containers
- std.io
- std.math
- std.time
srcs:
- tools/bench.sakura
# Times what `geometry` does against the same written a number at a time; see
# its header.
- name: geometry.bench
type: program
level: ${level}
deps:
- geometry
- linear
- std.containers
- std.io
- std.math
- std.time
srcs:
- tools/geometry_bench.sakura
tests:
# On the machine, which works each number at a time.
- name: linear.tests
type: program
deps: [linear, std.math, std.testing]
srcs: [tests/main.sakura, tests/linear.sakura]
# The same tests built with `-O2`, which works vectors as lanes, and gives the
# same bits.
- name: linear.lanes.tests
type: program
runs: native
level: 2
deps: [linear, std.math, std.testing]
srcs: [tests/main.sakura, tests/linear.sakura]
# `geometry`'s, the same two ways.
- name: geometry.tests
type: program
deps: [geometry, linear, std.math, std.testing]
srcs: [tests/main.sakura, tests/geometry.sakura]
- name: geometry.lanes.tests
type: program
runs: native
level: 2
deps: [geometry, linear, std.math, std.testing]
srcs: [tests/main.sakura, tests/geometry.sakura]
exports:
- linear
- geometry
package:
desc: Vectors, quaternions, and matrices of f32, and the shapes of space made of them, worked as SIMD lanes where an executable holds them.
auth: John Christman <sorakatadzuma@gmail.com>