runtime_files.list
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Sun, 06 Jan 2019 01:22:46 +0300
changeset 2499 68f4f2d4516b
parent 2294 da288f63612f
child 2305 56f1d8aca886
permissions -rw-r--r--
use pregenerated CRC32 lookup tables for retain on Win32 and GNU/Linux

This code could be possible reused on low-end targets with limited RAM.

code to generate lookup table:
[---------------------------------------------------------------------]

/* CRC lookup table and initial state. */
uint32_t crc32_table[256];

/* Generate CRC32 lookup table. */
void GenerateCRC32Table(void)
{
unsigned int i, j;
/* Use CRC-32-IEEE 802.3 polynomial 0x04C11DB7 (bit reflected). */
uint32_t poly = 0xEDB88320;

for (i = 0; i <= 0xFF; i++)
{
uint32_t c = i;
for (j = 0 ; j < 8 ; j++)
c = (c & 1) ? (c >> 1 ) ^ poly : (c >> 1);
crc32_table[i] = c;
}
}

void main(void)
{
GenerateCRC32Table();
int j=0;
for(int i=0; i<256; i++) {
printf("0x%08X, ", crc32_table[i]);
if (++j >= 8) {
j = 0;
printf("\n");
}
}
}
[---------------------------------------------------------------------]
1902
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     1
# those files are used in runtime
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     2
# licensed according to LGPL, see COPYING.runtime 
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     3
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     4
images/icostop24.png
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     5
images/icoplay24.png
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     6
images/brz.png
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     7
util/__init__.py
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     8
util/paths.py
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
     9
runtime/WampClient.py
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    10
runtime/PLCObject.py
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    11
runtime/NevowServer.py
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    12
runtime/webinterface.js
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    13
runtime/__init__.py
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    14
runtime/ServicePublisher.py
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    15
runtime/typemapping.py 
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    16
runtime/loglevels.py 
2b7e2db31d81 Clarify licensing, and packaging of runtime only files :
Edouard Tisserant
parents:
diff changeset
    17
Beremiz_service.py
2294
da288f63612f Make Beremiz_service print version information
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1902
diff changeset
    18
version.py