1 | /* |
1 | /* |
2 | * Copyright (c) 2000 Marc Alexander Lehmann <pcg@goof.com> |
2 | * Copyright (c) 2000-2002 Marc Alexander Lehmann <pcg@goof.com> |
3 | * |
3 | * |
4 | * Redistribution and use in source and binary forms, with or without modifica- |
4 | * Redistribution and use in source and binary forms, with or without modifica- |
5 | * tion, are permitted provided that the following conditions are met: |
5 | * tion, are permitted provided that the following conditions are met: |
6 | * |
6 | * |
7 | * 1. Redistributions of source code must retain the above copyright notice, |
7 | * 1. Redistributions of source code must retain the above copyright notice, |
… | |
… | |
48 | #endif |
48 | #endif |
49 | |
49 | |
50 | /* |
50 | /* |
51 | * sacrifice some compression quality in favour of compression speed. |
51 | * sacrifice some compression quality in favour of compression speed. |
52 | * (roughly 1-2% worse compression for large blocks and |
52 | * (roughly 1-2% worse compression for large blocks and |
53 | * 9-10% for small, redundant, blocks and 20% better speed in both cases) |
53 | * 9-10% for small, redundant, blocks and >>20% better speed in both cases) |
54 | * In short: enable this for binary data, disable this for text data. |
54 | * In short: enable this for binary data, disable this for text data. |
55 | */ |
55 | */ |
56 | #ifndef ULTRA_FAST |
56 | #ifndef ULTRA_FAST |
57 | # define ULTRA_FAST 1 |
57 | # define ULTRA_FAST 1 |
58 | #endif |
58 | #endif |
… | |
… | |
91 | # if USHRT_MAX == 65535 |
91 | # if USHRT_MAX == 65535 |
92 | typedef unsigned short u16; |
92 | typedef unsigned short u16; |
93 | # elif UINT_MAX == 65535 |
93 | # elif UINT_MAX == 65535 |
94 | typedef unsigned int u16; |
94 | typedef unsigned int u16; |
95 | # else |
95 | # else |
96 | # warn need 16 bit datatype when STRICT_ALIGN == 0, this is non-fatal |
|
|
97 | # undef STRICT_ALIGN |
96 | # undef STRICT_ALIGN |
98 | # define STRICT_ALIGN 1 |
97 | # define STRICT_ALIGN 1 |
99 | # endif |
98 | # endif |
100 | #endif |
99 | #endif |
101 | |
100 | |