Skip to content

Commit cb3d938

Browse files
vk2sebzyp
authored andcommitted
Rationale: add note on Q notation selected
1 parent 6d406f0 commit cb3d938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0041-fixed-point.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ TBD
110110

111111
- There's two slightly different [Q notation](https://en.wikipedia.org/wiki/Q_(number_format)) definitions, namely whether the bit counts includes the sign bit or not.
112112
- Not having the sign bit included seems more common, and has the advantage that a number has the same fractional precision whether `i_bits` is 0 or not.
113-
- Having the sign bit included is the dominant notation in the audio ASIC world (citation needed, comment from samimia-swks@). As of now, this RFC uses this notation as it is also a little simpler to reason about the size of underlying storage on constructing an `SQ`.
114113
- While Q notation names the signed type `Q`, it's more consistent for Amaranth to use `SQ` since other Amaranth types defaults to unsigned.
114+
- vk2seb@: Having the sign bit included is the dominant notation in the audio ASIC world (citation needed, comment from samimia-swks@). As of now, this RFC uses this notation as it is also a little simpler to reason about the size of underlying storage on constructing an `SQ`.
115115

116116
## Prior art
117117
[prior-art]: #prior-art

0 commit comments

Comments
 (0)