Skip to content

Commit 0557f4a

Browse files
committed
0.2.5 Adler
1 parent 7c3a797 commit 0557f4a

25 files changed

+101
-27
lines changed

libraries/Adler/.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# These are supported funding model platforms
22

33
github: RobTillaart
4-
4+
custom: "https://www.paypal.me/robtillaart"

libraries/Adler/.github/workflows/arduino-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on: [push, pull_request]
55
jobs:
66
lint:
77
runs-on: ubuntu-latest
8+
timeout-minutes: 5
89
steps:
9-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1011
- uses: arduino/arduino-lint-action@v1
1112
with:
1213
library-manager: update

libraries/Adler/.github/workflows/arduino_test_runner.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on: [push, pull_request]
66
jobs:
77
runTest:
88
runs-on: ubuntu-latest
9+
timeout-minutes: 20
910

1011
steps:
11-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1213
- uses: ruby/setup-ruby@v1
1314
with:
1415
ruby-version: 2.6

libraries/Adler/.github/workflows/jsoncheck.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 5
1213
steps:
13-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1415
- name: json-syntax-check
15-
uses: limitusus/json-syntax-check@v1
16+
uses: limitusus/json-syntax-check@v2
1617
with:
1718
pattern: "\\.json$"
1819

libraries/Adler/Adler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: Adler.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.2.4
4+
// VERSION: 0.2.5
55
// DATE: 2022-01-27
66
// PURPOSE: Arduino Library for calculating Adler checksum
77
// URL: https://github.com/RobTillaart/Adler

libraries/Adler/Adler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: Adler.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.2.4
5+
// VERSION: 0.2.5
66
// DATE: 2022-01-27
77
// PURPOSE: Arduino Library for calculating Adler checksum
88
// URL: https://github.com/RobTillaart/Adler
@@ -12,7 +12,7 @@
1212
#include "Arduino.h"
1313

1414

15-
#define ADLER_LIB_VERSION (F("0.2.4"))
15+
#define ADLER_LIB_VERSION (F("0.2.5"))
1616

1717

1818
const uint32_t ADLER32_MOD_PRIME = 65521;

libraries/Adler/Adler16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: Adler16.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.2.4
4+
// VERSION: 0.2.5
55
// DATE: 2022-06-14
66
// PURPOSE: Arduino Library for calculating Adler-16 checksum
77
// URL: https://github.com/RobTillaart/Adler

libraries/Adler/Adler16.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22
//
3-
// FILE: Adler16.cpp
3+
// FILE: Adler16.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.2.4
5+
// VERSION: 0.2.5
66
// DATE: 2022-06-15
77
// PURPOSE: Arduino Library for calculating Adler-16 checksum
88
// URL: https://github.com/RobTillaart/Adler
@@ -13,7 +13,7 @@
1313
#include "Arduino.h"
1414

1515

16-
#define ADLER16_LIB_VERSION (F("0.2.4"))
16+
#define ADLER16_LIB_VERSION (F("0.2.5"))
1717

1818

1919
// largest prime below 2^8

libraries/Adler/Adler32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: Adler32.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.2.4
4+
// VERSION: 0.2.5
55
// DATE: 2022-01-27
66
// PURPOSE: Arduino Library for calculating Adler-32 checksum
77
// URL: https://github.com/RobTillaart/Adler

libraries/Adler/Adler32.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22
//
3-
// FILE: Adler.h
3+
// FILE: Adler32.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.2.4
5+
// VERSION: 0.2.5
66
// DATE: 2022-01-27
77
// PURPOSE: Arduino Library for calculating Adler-32 checksum
88
// URL: https://github.com/RobTillaart/Adler
@@ -12,7 +12,7 @@
1212
#include "Arduino.h"
1313

1414

15-
#define ADLER32_LIB_VERSION (F("0.2.4"))
15+
#define ADLER32_LIB_VERSION (F("0.2.5"))
1616

1717

1818
// largest prime below 2^16

libraries/Adler/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.2.5] - 2024-03-28
10+
- update GitHub actions
11+
- add 0.2.5 performance tests
12+
- minor edits
13+
14+
915
## [0.2.4] - 2023-10-15
1016
- update readme.md
1117
- add static wrappers for char arrays
1218
- update keywords.txt
1319
- minor edits
1420

15-
1621
## [0.2.3] - 2023-01-16
1722
- update GitHub actions
1823
- update license

libraries/Adler/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2023 Rob Tillaart
3+
Copyright (c) 2022-2024 Rob Tillaart
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

libraries/Adler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Adler16 does more often the modulo math as it reaches halfway uint16_t
229229
faster than Adler32 reaches halfway uint32_t.
230230

231231
As the Adler16 is less performant as the Adler32 (on all tested platforms),
232-
it is often the best choice to use the 32 bit version.
232+
Adler32 is often the best choice to use the 32 bit version.
233233

234234

235235
## Operation
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Adler16_performance
2+
ADLER16_LIB_VERSION: 0.2.5
3+
randomtime: 901480
4+
total: 941072
5+
1e4 x add: 39592
6+
checksum: 6798
7+
8+
total: 5000108
9+
1e6 x add: 4098628
10+
checksum: 5028
11+
12+
LENGTH LOREM: 868
13+
14+
lorem 1: 3600 checksum: 57303
15+
lorem 2: 4040 checksum: 57303
16+
lorem 3: 1968 checksum: 57303
17+
18+
LENGTH HELLO: 11
19+
20+
hello 1: 48 checksum: 36209
21+
hello 2: 52 checksum: 36209
22+
hello 3: 48 checksum: 36209

libraries/Adler/examples/Adler16_test/Adler16_test.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "Arduino.h"
99
#include "Adler16.h"
1010

11+
1112
// expected output
1213
// Adler16_test
1314
// ADLER16_LIB_VERSION: 0.2.0
@@ -22,6 +23,7 @@ uint8_t arr1[5] = { 100, 120, 130, 135, 140 };
2223
uint8_t arr2[5] = { 101, 120, 130, 135, 140 }; // minimal diff.
2324
uint8_t arr3[5] = { 100, 120, 130, 135, 141 }; // minimal diff.
2425

26+
2527
void setup()
2628
{
2729
Serial.begin(115200);

libraries/Adler/examples/Adler32_performance/Adler32_performance.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
Adler32 ad;
13+
1314
volatile uint8_t z;
1415
uint32_t start, stop, randomtime;
1516

@@ -32,7 +33,6 @@ nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui.";
3233
char hello[] = "hello world";
3334

3435

35-
3636
void setup()
3737
{
3838
Serial.begin(115200);
@@ -170,7 +170,6 @@ void setup()
170170
Serial.println(ad.getAdler());
171171
Serial.println();
172172

173-
174173
}
175174

176175

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Adler32_performance
2+
ADLER32_LIB_VERSION: 0.2.5
3+
randomtime: 901480
4+
total: 960236
5+
1e4 x add: 58756
6+
checksum: 1607808947
7+
8+
total: 6919548
9+
1e6 x add: 6018068
10+
checksum: 237492440
11+
12+
LENGTH LOREM: 868
13+
14+
lorem 1: 5308 checksum: 3972480156
15+
lorem 2: 5640 checksum: 3972480156
16+
lorem 3: 1344 checksum: 3972480156
17+
18+
LENGTH HELLO: 11
19+
20+
hello 1: 68 checksum: 436929629
21+
hello 2: 72 checksum: 436929629
22+
hello 3: 32 checksum: 436929629

libraries/Adler/examples/Adler32_performance_addFast/Adler32_performance_addFast.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void setup()
4242
Serial.print("ADLER32_LIB_VERSION: ");
4343
Serial.println(ADLER32_LIB_VERSION);
4444

45-
// to compare footprint
45+
// to compare footprint
4646
// ad.add(lorem, strlen(lorem));
4747
ad.addFast(lorem, strlen(lorem));
4848
}

libraries/Adler/examples/Adler32_test/Adler32_test.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,26 @@
44
// PURPOSE: demo
55
// URL: https://github.com/RobTillaart/Adler
66

7+
78
#include "Arduino.h"
89
#include "Adler32.h"
910

11+
1012
// expected output
1113
// Adler32_test
12-
// ADLER32_LIB_VERSION: 0.2.0
14+
// ADLER32_LIB_VERSION: 0.2.5
1315
// 116982386
1416
// 117310067
1517
// 117047923
1618

1719

18-
1920
Adler32 ad;
2021

2122
uint8_t arr1[5] = { 100, 120, 130, 135, 140 };
2223
uint8_t arr2[5] = { 101, 120, 130, 135, 140 }; // minimal diff.
2324
uint8_t arr3[5] = { 100, 120, 130, 135, 141 }; // minimal diff.
2425

26+
2527
void setup()
2628
{
2729
Serial.begin(115200);

libraries/Adler/examples/Adler_performance/Adler_performance.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
// PURPOSE: demo
55
// URL: https://github.com/RobTillaart/Adler
66

7+
78
#include "Arduino.h"
89
#include "Adler.h"
910

11+
1012
char str[] = "Lorem ipsum dolor sit amet, \
1113
consectetuer adipiscing elit. Aenean commodo ligula eget dolor. \
1214
Aenean massa. Cum sociis natoque penatibus et magnis dis parturient \
@@ -25,6 +27,7 @@ nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui.";
2527

2628
uint32_t start, stop;
2729

30+
2831
void setup()
2932
{
3033
Serial.begin(115200);
@@ -77,4 +80,3 @@ void loop()
7780

7881

7982
// -- END OF FILE --
80-
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
Tested on Arduino UNO
3+
IDE 1.18.19
4+
5+
D:\Rob\WORK\Arduino\libraries\Adler\examples\Adler_performance\Adler_performance.ino
6+
ADLER_LIB_VERSION: 0.2.5
7+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ae...
8+
LENGTH STR: 868
9+
TIME us: 1116
10+
ADLER-32: 3972480156 ECC73C9C
11+
TIME us: 1740
12+
ADLER-16: 57303 DFD7
13+
14+
15+

libraries/Adler/examples/Adler_test/Adler_test.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// PURPOSE: demo
55
// URL: https://github.com/RobTillaart/Adler
66

7+
78
#include "Arduino.h"
89
#include "Adler.h"
910

libraries/Adler/keywords.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ count KEYWORD2
2121
# Constants (LITERAL1)
2222
ADLER32_LIB_VERSION LITERAL1
2323
ADLER16_LIB_VERSION LITERAL1
24+
2425
ADLER32_MOD_PRIME LITERAL1
2526
ADLER16_MOD_PRIME LITERAL1
2627

libraries/Adler/library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/Adler.git"
1717
},
18-
"version": "0.2.4",
18+
"version": "0.2.5",
1919
"license": "MIT",
2020
"frameworks": "*",
2121
"platforms": "*",

libraries/Adler/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adler
2-
version=0.2.4
2+
version=0.2.5
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Arduino Library for calculating Adler-32 and Adler-16 checksum.

0 commit comments

Comments
 (0)