summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40022-tst02.d
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-18 17:53:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-19 19:27:29 +0900
commitc0a6f1b84c84749908961579b84513fd9f9d9eac (patch)
treeace7ba60cb031acd3a1f4ff10f7bbc5668fa801f /debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40022-tst02.d
parent52e5ffe140f0f4402e97936447bc9a606045d2b5 (diff)
downloadextra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.tar.gz
extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.zip
uncrustify-trinity: updated based on upstream version 0.78.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40022-tst02.d')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40022-tst02.d30
1 files changed, 0 insertions, 30 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40022-tst02.d b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40022-tst02.d
deleted file mode 100644
index aa138a86..00000000
--- a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40022-tst02.d
+++ /dev/null
@@ -1,30 +0,0 @@
-package static ushort calcHeaderCrc(bool aStartupFrame, bool aSyncFrame, ushort aFrameId, ushort aPayloadWords) {
- uint crcData = aPayloadWords;
-
- crcData |= (aFrameId << 7);
-
- if (aSyncFrame) {
- crcData |= BIT_19;
- }
-
- if (aStartupFrame) {
- crcData |= BIT_18;
- }
-
- ushort crc = 0x1a;
- const ushort table[16] = [
- 0x0000, 0x0385, 0x070A, 0x048F,
- 0x0591, 0x0614, 0x029B, 0x011E,
- 0x00A7, 0x0322, 0x07AD, 0x0428,
- 0x0536, 0x06B3, 0x023C, 0x01B9
- ];
-
- for (int i = 0; i < 5; ++i) {
- if (i != 0) {
- crcData <<= 4;
- }
- crc = ((crc << 4) & 0x7FF) ^ table[((crc >> 7) ^ (crcData >> 16)) & 0x0F];
- }
-
- return(crc);
-}