mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Add doc/glossary.md
This commit is contained in:
1 parent
a0ace850d1
commit
04e8d14d40
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
# Glossary
|
||||
|
||||
#### Arithmetic
|
||||
|
||||
Addition `(x + y)`, multiplication `(x * y)`, etc.
|
||||
|
||||
#### Interval Arithmetic
|
||||
|
||||
See the [interval arithmetic](/doc/note/interval-arithmetic.md) note.
|
||||
|
||||
#### Modular Arithmetic
|
||||
|
||||
Arithmetic that wraps around at a certain modulus, such as `256` for the
|
||||
`base.u8` type. For example, if `x` is a `base.u8` with value `200`, then `(x +
|
||||
70)` has value `270`, but `(x ~mod+ 70)` has value `14`.
|
||||
|
||||
#### Saturating Arithmetic
|
||||
|
||||
Arithmetic that stops at certain bounds, such as `0` and `255` for the
|
||||
`base.u8` type. For example, if `x` is a `base.u8` with value `200`, then `(x +
|
||||
70)` has value `270`, but `(x ~sat+ 70)` has value `255`.
|
||||
Reference in new issue
Block a user