summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-05 11:53:55 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-05 12:11:22 -0600
commit66ae04e2614b53bb96eac7370ffcebce3522e01a (patch)
treec9860045cbbeb02ade0030152f300c6f1985efb6
parentcc3a585e37cf58b61cbea599cc4de93cf713834b (diff)
notes: add _C macros
-rw-r--r--notes.md90
1 files changed, 45 insertions, 45 deletions
diff --git a/notes.md b/notes.md
index f146ed4..c1427ce 100644
--- a/notes.md
+++ b/notes.md
@@ -3,51 +3,51 @@ Which file to include:
> The <stdint.h> header is a subset of the <inttypes.h> header
-|----------------------------------------|-----------------------------------|--------------------------------|
-| C INTS | | |
-| `{CHAR,SHRT,INT,LONG,LLONG}_{MIN,MAX}` | `<limits.h>` | |
-| `U{CHAR,SHRT,INT,LONG,LLONG}_MAX` | `<limits.h>` | |
-|----------------------------------------|-----------------------------------|--------------------------------|
-| C SIZED INTS | | |
-| `(C u)int{n}_t` (and `_{MIN,MAX}`) | `<stdint.h>` | exact |
-| `(u)int_least{n}_t` (and `_{MIN,MAX}`) | `<stdint.h>` | type may be more than `n` bits |
-| `(u)int_fast{n}_t` (and `_{MIN,MAX}`) | `<stdint.h>` | type may be more than `n` bits |
-| `(u)intptr_t` (and `_{MIN,MAX}`) | `<stdint.h>` | |
-| `(u)intmax_t` (and `_{MIN,MAX}`) | `<stdint.h>` | |
-| `PRI*` | `<inttypes.h>` | |
-| `SCN*` | `<inttypes.h>` | |
-|----------------------------------------|-----------------------------------|--------------------------------|
-| C ADDRESS INTS | | |
-| `ptrdiff_t` | `<stddef.h>` | |
-| `PTRDIFF_{MIN,MAX}` | `<stdint.h>` | |
-| `size_t` | `<stddef.h>` (or `<sys/types.h>`) | |
-| `SIZE_MAX` | `<stdint.h>` | |
-|----------------------------------------|-----------------------------------|--------------------------------|
-| C WCHAR INTS | | |
-| `wchar_t` | `<stddef.h>` | |
-| `WCHAR_{MIN,MAX}` | `<stdint.h>` | |
-| `wint_t` | `<wchar.h>` | |
-| `WINT_{MIN,MAX}` | `<stdint.h>` | |
-|----------------------------------------|-----------------------------------|--------------------------------|
-| POSIX INTS | | |
-| `sig_atomic_t` | `<signal.h>` | |
-| `SIG_ATOMIC_{MIN,MAX}` | `<stdint.h>` | |
-| `mode_t` | `<sys/types.h>` | unsigned |
-| `dev_t` | `<sys/types.h>` | unsigned |
-| `nlink_t` | `<sys/types.h>` | unsigned |
-| `{u,g,}id_t` | `<sys/types.h>` | unsigned |
-| `blkcnt_t` | `<sys/types.h>` | signed |
-| `off_t` | `<sys/types.h>` | signed |
-| `fsblkcnt_t` | `<sys/types.h>` | unsigned |
-| `fsfilecnt_t` | `<sys/types.h>` | unsigned |
-| `ino_t` | `<sys/types.h>` | unsigned |
-| `blksize_t` | `<sys/types.h>` | signed |
-| `pid_t` | `<sys/types.h>` | signed |
-| `ssize_t` | `<sys/types.h>` | signed |
-| `SSIZE_MAX` | `<limits.h>` | |
-| `suseconds_t` | `<sys/types.h>` | signed |
-| `clock_t` | `<sys/types.h>` | could be float |
-| `time_t` | `<sys/types.h>` | signed |
+|------------------------------------------|-----------------------------------|--------------------------------|
+| C INTS | | |
+| `{CHAR,SHRT,INT,LONG,LLONG}_{MIN,MAX}` | `<limits.h>` | |
+| `U{CHAR,SHRT,INT,LONG,LLONG}_MAX` | `<limits.h>` | |
+|------------------------------------------|-----------------------------------|--------------------------------|
+| C SIZED INTS | | |
+| `(C u)int{n}_t` (and `_{MIN,MAX,C}`) | `<stdint.h>` | exact |
+| `(u)int_least{n}_t` (and `_{MIN,MAX,C}`) | `<stdint.h>` | type may be more than `n` bits |
+| `(u)int_fast{n}_t` (and `_{MIN,MAX,C}`) | `<stdint.h>` | type may be more than `n` bits |
+| `(u)intptr_t` (and `_{MIN,MAX,C}`) | `<stdint.h>` | |
+| `(u)intmax_t` (and `_{MIN,MAX,C}`) | `<stdint.h>` | |
+| `PRI*` | `<inttypes.h>` | |
+| `SCN*` | `<inttypes.h>` | |
+|------------------------------------------|-----------------------------------|--------------------------------|
+| C ADDRESS INTS | | |
+| `ptrdiff_t` | `<stddef.h>` | |
+| `PTRDIFF_{MIN,MAX}` | `<stdint.h>` | |
+| `size_t` | `<stddef.h>` (or `<sys/types.h>`) | |
+| `SIZE_MAX` | `<stdint.h>` | |
+|------------------------------------------|-----------------------------------|--------------------------------|
+| C WCHAR INTS | | |
+| `wchar_t` | `<stddef.h>` | |
+| `WCHAR_{MIN,MAX}` | `<stdint.h>` | |
+| `wint_t` | `<wchar.h>` | |
+| `WINT_{MIN,MAX}` | `<stdint.h>` | |
+|------------------------------------------|-----------------------------------|--------------------------------|
+| POSIX INTS | | |
+| `sig_atomic_t` | `<signal.h>` | |
+| `SIG_ATOMIC_{MIN,MAX}` | `<stdint.h>` | |
+| `mode_t` | `<sys/types.h>` | unsigned |
+| `dev_t` | `<sys/types.h>` | unsigned |
+| `nlink_t` | `<sys/types.h>` | unsigned |
+| `{u,g,}id_t` | `<sys/types.h>` | unsigned |
+| `blkcnt_t` | `<sys/types.h>` | signed |
+| `off_t` | `<sys/types.h>` | signed |
+| `fsblkcnt_t` | `<sys/types.h>` | unsigned |
+| `fsfilecnt_t` | `<sys/types.h>` | unsigned |
+| `ino_t` | `<sys/types.h>` | unsigned |
+| `blksize_t` | `<sys/types.h>` | signed |
+| `pid_t` | `<sys/types.h>` | signed |
+| `ssize_t` | `<sys/types.h>` | signed |
+| `SSIZE_MAX` | `<limits.h>` | |
+| `suseconds_t` | `<sys/types.h>` | signed |
+| `clock_t` | `<sys/types.h>` | could be float |
+| `time_t` | `<sys/types.h>` | signed |
Here's my reading of the lowest-bitrate possible for our HDMI sink: