Repository navigation
docs: document caller-owned instances and fxp arithmetic for 0.4.0 - #9
Merged
Merged
Conversation
aajll
force-pushed
the
5-docs-caller-owned
branch
from
October 14, 2026 16:53
c77fea8 to
74a3bb7
Compare
The README, contributing guide and agent guide describe the caller-owned API, the fxp number format, the dt semantics and the TI C2000 CI gate, and drop the pool configuration. The changelog records the breaking changes, the fixes and the one-LSB re-baselined filter expectations under [Unreleased]. Refs #5
aajll
force-pushed
the
5-docs-caller-owned
branch
from
October 14, 2026 16:56
74a3bb7 to
7de6c7f
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #5
Layer 4 of 4. Documents the 0.4.0 API and records the change in the changelog.
Changes
README.md: caller-owned quick starts for PID, FIR and biquad using fxp constructors; number format;dtsemantics; lifecycle; thread-safety contract for caller-owned instances.CONTRIBUTING.md: storage and arithmetic design decisions; cppcheck and Valgrind commands for the fxp build; coverage gate.AGENTS.md: commands without pool options.CHANGELOG.md[Unreleased]: breaking changes, fixes, removals, and the one-LSB re-baselined filter expectations.Acceptance criteria evidence
-std=c11 -Wall -Wextra -Wpedantic -Werroragainst the built library and run with exit status 0.Whole change
The library moves from pool-backed, raw
int32_tQ16.16 arithmetic to caller-owned instances on thefxpkernel. That fixes three defects: the PID integral dropped sub-LSB contributions, filter sums could overflow a signed integer with extreme operands, and negative sums were narrowed with a right shift. The library is in the 0.x series, so the new API replaces the old one in 0.4.0 without deprecation shims. No release or tag is part of this stack.TI C2000
fxp needs aajll/fxp#3 to compile where
CHAR_BIT == 16, and the wrap pins a commit that includes it. Layer 1 adds the same C2000 CI job that fxp runs, so every layer builds on both CGT LTS versions with warnings as errors.-Dwerror=true,--abi=coffabi-Dwerror=true,--abi=eabitest_pid.c,test_filters.c, harness, library, fxp), compiled and linked with-z, COFF and EABI, top layercl2000 --issue_remarksreports nothing onsrc/filters.corsrc/pid_controller.c. A manual audit found no 16-bit-inthazards insrc/: no shifts, and theuint16_tindex arithmetic is cast back after each promotion.Limitations
fxphas no release tag yet, so the wrap pins commit24315b4; move it to a tag once fxp 0.1.0 is published.Stack
fxp, caller-owned, saturating; TI C2000 CI gatefxp: wide integral,dtper term, caller-ownedpool-allocator, its options and headers; coverage gate 100/100Review bottom first. Each layer builds and passes the full suite on its own. The whole-change narrative and limitations are in the top pull request (layer 4).