Skip to content

rust: Port graphics/quat.c to obs-graphics #148

Closed

Description

@zackees

Next in the Phase 5 graphics-math order (#45). test/cmocka/test_quat.c exists (it found the #86 quat_set bug). Header-inline helpers stay C; Tier 3 parity is bit-exact for scalar code. Handle aarch64 FMA contraction as #45 describes (the oracle is built with -ffp-contract=off).

Acceptance: follows docs/rust-port/testing-policy.md. RED commit (Tier 1 on a todo!() core, plus the C characterization test if missing) then GREEN; Tier 2 passes with ENABLE_RUST_LIBOBS OFF and ON with identical exports; Tier 3 parity against the C oracle; intentional differences listed in the parity test header and rust/README.md.

Claim before coding: comment on this issue and add the claimed label (or ask a maintainer to). Check open PRs first (gh pr list --search "<unit>").

Activity

  1. added
    enhancement
    port
    on Oct 10, 2026
  2. nathan-v commented on Oct 11, 2026

    @nathan-v
    Contributor

    Claiming this port. Plan: characterize the exported functions in test_quat.c (the existing test only covers the header-inline setters), then port quat.c into obs-graphics following docs/rust-port/testing-policy.md (RED Tier 1 on stubs, then the safe core, C shim, Tier 3 parity, and the ENABLE_RUST_LIBOBS swap). Header-inline helpers stay C.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementport

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions