Commit Graph

780 Commits

Author SHA1 Message Date
Yann Collet
32a31663c3 fuzzer depends on standard C time.h only 2016-09-02 19:48:24 -07:00
Yann Collet
64f556e610 lz4cli version number from lz4.h 2016-09-02 19:32:06 -07:00
Yann Collet
5871585b6a coding style change 2016-09-02 19:06:01 -07:00
Yann Collet
f4111cf04e Merge pull request #231 from inikep/dev
-b# and -e# options from zstd
2016-09-02 15:21:51 -07:00
inikep
b3ae49c7bf added <string.h> for strlen() 2016-09-02 23:02:30 +02:00
inikep
2cf32ef0f1 -b# and -e# options from zstd 2016-09-02 22:59:18 +02:00
inikep
c1864f69e8 fix mingw64 compilation warnings 2016-09-02 21:50:57 +02:00
Yann Collet
7f08131f99 Merge pull request #226 from gsauthof/port-make
Fix POSIX portability and cmake file
2016-08-28 13:55:36 +02:00
Georg Sauthoff
3fa60044e7 don't use variable eval syntax in if()
because it is substituted before if() is executed

cf. the last section of e.g.:
https://cmake.org/cmake/help/v3.1/command/if.html
2016-08-27 15:24:50 +02:00
Georg Sauthoff
e1e3305dbd don't link the tools against the shared library
by default.

reason: to have analogous behavior as with the official makefile

(using a shared library might have the side effect of slower execution)
2016-08-27 15:24:50 +02:00
Georg Sauthoff
b0d42cb7ec remove additional -fPIC switch because
- cmake is smart enough to add this flag on its own (for object files
  that it links into a shared library)
- cmake contains two sets of oject files - the position-dependent ones
  and the position-independent ones - and uses each set accordingly
  (for linking the executable, static library, shared library)
- having an executable that unnecessarily contains position-independent
  code has performance implications
2016-08-27 15:24:50 +02:00
Georg Sauthoff
681d5010d5 use gnu c99 to get both c99 and POSIX
when compiling with gcc

fixes fileno() implicitly defined on Linx and compile error on Solaris 10
2016-08-27 15:24:50 +02:00
Georg Sauthoff
584e1fe92a request POSIX.2001 definitions for fileno()
this also fixes compilation on Solaris 10

cf. feature_test_macros(7) Linux man page:

> _POSIX_SOURCE
>   Defining this obsolete macro with any value is equivalent to  defin‐
>   ing _POSIX_C_SOURCE with the value 1.
>
>   Since  this macro is obsolete, its usage is generally not documented
>   when discussing feature test macro requirements in the man pages.
2016-08-27 15:24:33 +02:00
Yann Collet
5bd3eaa481 minor comments 2016-08-21 00:08:38 +02:00
Yann Collet
9578ff539d minor refactor 2016-08-20 23:59:45 +02:00
Yann Collet
a7672dc4f9 minor decompression speed gains 2016-08-20 23:52:20 +02:00
Yann Collet
182645ee0f lz4 as phony target 2016-08-20 23:49:36 +02:00
Yann Collet
0214638eb7 Makefile : lz4 at root 2016-08-20 23:26:33 +02:00
Yann Collet
63d22e7a19 minor comments clarifications 2016-08-20 23:22:29 +02:00
Yann Collet
74e6afc5dc minor comments clarification 2016-08-11 18:55:42 +02:00
Yann Collet
2ac9ecec68 Fixed #157 : LZ4F_getFrameInfo() fails on valid null-content frame 2016-08-11 14:55:39 +02:00
Yann Collet
45ea27949c Minor fuzzer code refactoring 2016-08-11 12:18:45 +02:00
Yann Collet
de69eca475 Merge branch 'dev' of github.com:Cyan4973/lz4 into dev 2016-08-11 12:00:32 +02:00
Yann Collet
828332d236 fixed : fuzzer test, reported by @setharnold (#203) 2016-08-10 09:14:11 +02:00
Yann Collet
b130fd5923 minor refactoring changes 2016-08-10 08:26:49 +02:00
Yann Collet
3c295ca4ac Merge pull request #222 from kou/fix-build-error-with-mingw
Fix build error with MinGW on Linux
2016-07-26 11:44:09 +02:00
Kouhei Sutou
0c63b7cbd9 Fix build error with MinGW on Linux
Linux uses case sensitive file system. So "Windows.h" doesn't exist.

    % make CC=x86_64-w64-mingw32-gcc EXT=.exe SHARD_EXT=dll
    ...
    lz4io.c:69:73: fatal error: Windows.h: No such file or directory
    compilation terminated.
    ...
2016-07-25 15:54:16 +09:00
Yann Collet
7316584ca0 Merge pull request #219 from BenWiederhake/dev
Clean up links, repository-wide
2016-07-08 06:31:18 +02:00
Ben Wiederhake
d3e2d80266 Use https wherever possible 2016-07-08 00:46:02 +02:00
Ben Wiederhake
cec38d1b74 Correctly reference self (github, not googlecode) 2016-07-08 00:45:33 +02:00
Ben Wiederhake
6540030033 Use correct 'repository' hostname 2016-07-08 00:45:18 +02:00
Yann Collet
91cce757f5 Updated xxhash library to v0.6.1 2016-06-29 21:48:27 +02:00
Yann Collet
5540f4f93e stronger compilation flags 2016-06-29 20:25:10 +02:00
Yann Collet
19e585cc46 modified : some more deprecated functions from lz4hc.h generate warnings 2016-06-29 18:18:34 +02:00
Yann Collet
6b1600f41e changed : default benchmark LZ4_decompress_safe() 2016-06-29 17:48:28 +02:00
Yann Collet
6923f3e230 Minor refactoring (code style) 2016-06-29 17:12:24 +02:00
Yann Collet
410ec81543 Fixed : alignment warning 2016-06-29 17:02:09 +02:00
Yann Collet
bc342ab94c minor refactoring 2016-06-29 16:01:24 +02:00
Yann Collet
c8a573d32c very minor decompression speed gain 2016-06-29 15:04:19 +02:00
Yann Collet
a5508b1ad2 fixed display result issue when benchmarking multiple files 2016-06-29 14:56:50 +02:00
Yann Collet
e27e7316dd minor code refactoring 2016-06-29 14:54:07 +02:00
Yann Collet
2d7df8b306 Reduced bench dependency to standard C <time.h>
Faster tests
More accurate results on systems with high resolution clocks
2016-06-29 14:35:19 +02:00
Yann Collet
8938e10742 minor compression speed improvement 2016-06-29 14:07:54 +02:00
Yann Collet
c77c0c1086 minor refactoring 2016-06-29 13:21:23 +02:00
Yann Collet
3c03326004 minor refactoring (coding style) 2016-06-29 12:54:23 +02:00
Yann Collet
1f47f3f747 Merge pull request #208 from Nimloth/dev
Add FreeBSD to install targets
2016-05-17 11:14:31 +02:00
Martin Waschbüsch
7bfbccb972 Add FreeBSD to install targets
Add FreeBSD to install targets
2016-05-17 07:47:03 +02:00
Yann Collet
5bb5d6ee15 Merge pull request #204 from irwand/dev
Alloc failure fixes
2016-05-10 08:01:53 +02:00
Irwan Djajadi
bc70a4b72e fixed non-C99 compilers 2016-04-19 15:06:15 -05:00
Irwan Djajadi
10e3eecc56 fixed non-C99 compiler 2016-04-19 15:01:35 -05:00