From 71ead5abb7bff04b4ef09547e44fdaf9c52d48bf Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 17 Oct 2023 01:34:21 +0200 Subject: [PATCH] Further small improvements --- _includes/cheatsheet-binary.md | 7 ++++--- preserves-binary.md | 35 +++++++++++++++------------------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/_includes/cheatsheet-binary.md b/_includes/cheatsheet-binary.md index 35b49c8..9abec85 100644 --- a/_includes/cheatsheet-binary.md +++ b/_includes/cheatsheet-binary.md @@ -31,9 +31,10 @@ class="postcard-grammar binarysyntax">*V*. | | (*n* & 127) | 128 **varint**(*n* >> 7) | if *n* ≥ 128 {:.postcard-grammar.binarysyntax} -**intbytes**(*n*) | = | (the empty sequence) | if *n* = 0 -| | **signedBigEndian**(*n*) | otherwise -**signedBigEndian**(*n*) | = | *n* & 255 | if -128 ≤ *n* ≤ 127 +**intbytes**(*n*) | = | the empty sequence if *n* = 0, otherwise **signedBigEndian**(*n*) + +{:.postcard-grammar.binarysyntax} +**signedBigEndian**(*n*) | = | *n* & 255 | if −128 ≤ *n* ≤ 127 | | **signedBigEndian**(*n* >> 8) *n* & 255 | otherwise The functions **binary32**(*F*) and