Commit Graph

120 Commits (30528bf58036bfe9c4f17995ebec29501b062962)

Author SHA1 Message Date
Thomas Goirand 30528bf580 Also build a libgf-complete1-sse package, which contains the optimized version of the library. 2015-09-20 15:29:58 +02:00
James Page ba127b4a1d releasing package gf-complete version 1.0.2-2 2015-09-17 12:17:12 +01:00
James Page a1fec3cca1 Revert "Now also building a version of the .so with SSE support."
This reverts commit 6c3d8e552e.
2015-09-17 12:03:04 +01:00
James Page 9d2f712c43 Resync with Ubuntu 2015-09-16 12:18:37 +01:00
Thomas Goirand 6c3d8e552e Now also building a version of the .so with SSE support. 2015-08-11 15:51:13 +02:00
Thomas Goirand b505099178 Fixed debian/libgf-complete1.symbols to have the correct version. 2014-06-17 00:51:26 +08:00
Thomas Goirand 73b9cedc2b Deleted include/config.h.in~ 2014-06-17 00:48:48 +08:00
Thomas Goirand 926b1b76c4 Packaging upstream v1.0.2 2014-06-17 00:48:11 +08:00
Thomas Goirand bdfae11e32 Merge tag 'v1.0.2' into debian/unstable
Adding tag for easier downstream tracking.
2014-06-17 00:47:42 +08:00
Kevin Greenan 9311b4fc10 Removed PDF from the repo and added a note in the README that describes how to
get the manual.
2014-06-09 08:34:50 -07:00
Adam Disney 6bb1ebb9f4 Implemented CARRY_FREE_GK. Sections added are tagged with a comment //ADAM
for easy navigation.
2014-06-06 13:09:04 -04:00
Thomas Goirand f56efaec5e Added initial debian folder. 2014-06-06 16:17:46 +00:00
Kevin Greenan 9d53ea590b Merged in dalgaaf/gf-complete/wip-da-coverity-rebased (pull request #21)
Fixes for some issues found via Coverity in the Ceph project.
2014-04-27 09:24:00 -07:00
Danny Al-Gaaf df2c84d232 gf_w4.c: remove some dead code
Fix for coverity issue from Ceph project:

CID 1193093 (#1 of 1): Structurally dead code (UNREACHABLE)
 unreachable: This code cannot be reached: "return gf_w4_double_table_i...".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:27 +02:00
Danny Al-Gaaf 0c04d6e3db gf.c: fix pointless expression
Remove identical expression, reorganize code in gf_error_check()
to be identical handled trough all checks. Removed (raltmap && arg1 != 4)
check - this is dead code (arg1 is always 4 in this code path).

Fix for coverity issue from Ceph project:

CID 1193071 (#1 of 1): Same on both sides (CONSTANT_EXPRESSION_RESULT)
 pointless_expression: The expression (arg1 == 4 && arg2 == 32) ||
 (arg1 == 4 && arg2 == 32) does not accomplish anything because it
 evaluates to either of its identical operands, arg1 == 4 && arg2 == 32.
 Did you intend the operands to be different?

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:27 +02:00
Danny Al-Gaaf 13f0e8888f fix comment/message on GF_E_SP128_A/GF_E_SP128_S
Swap comments/messages on GF_E_SP128_A/GF_E_SP128_S.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:26 +02:00
Danny Al-Gaaf fa5ec8112b gf_w8.c: add missing breaks
Since there is no comment indicating fallthrough on purpose added a
break in switch value 5 and 6.

Fix for coverity issue from Ceph project:

CID 1193084 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 5) is not terminated by a 'break'
 statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:26 +02:00
Danny Al-Gaaf 3b6364e5f2 gf_w4.c: add missing breaks
Since there is no comment indicating fallthrough on purpose added a
break in switch value 5 and 6.

Fix for coverity issue from Ceph project:

CID 1193082 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 5) is not terminated by a 'break'
 statement.

CID 1193083 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 6) is not terminated by a 'break'
 statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:26 +02:00
Danny Al-Gaaf 86b994df05 gf_w32.c: add missing breaks
Since there is no comment indicating fallthrough on purpose added a
break in switch value 3 and 5/before default.

Fix for coverity issue from Ceph project:

CID 1193080 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 3) is not terminated by a 'break'
 statement.

CID 1193081 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 5) is not terminated by a 'break'
 statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:26 +02:00
Danny Al-Gaaf e958b0437d gf_w16.c: add missing break
Since there is no comment indicating fallthrough on purpose added a
break in switch value 5/before default.

Fix for coverity issue from Ceph project:

CID 1193079 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 5) is not terminated by a 'break'
 statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:26 +02:00
Danny Al-Gaaf 173f82442d gf_general.c: fix pointless expression
Instead of checking w128[0] twice check for w128[0] and w128[1].

Fix for coverity issue from Ceph project:

CID 1193072 (#1 of 1): Same on both sides (CONSTANT_EXPRESSION_RESULT)
 pointless_expression: The expression v1->w128[0] == v2->w128[0] &&
 v1->w128[0] == v2->w128[0] does not accomplish anything because it
 evaluates to either of its identical operands, v1->w128[0] == v2->w128[0].
 Did you intend the operands to be different?

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-22 20:08:26 +02:00
Kevin Greenan 1559c2b515 Merged in dachary/gf-complete/wip-uint-8 (pull request #19)
prefer uint8_t to char in pointer arithmetic
2014-04-10 19:01:49 -07:00
Kevin Greenan e26cd5aa37 Merged in dachary/gf-complete/wip-hard-coded-note (pull request #18)
TODO reminder for KMG/JSP about hardcoded constant
2014-04-10 10:46:20 -07:00
Loic Dachary a0ae760ed3 prefer uint8_t to char in pointer arithmetic
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-04-10 17:21:38 +02:00
Loic Dachary 564f019f49 Show pointer arithmetic warnings by default
So that a void* being used in pointer arithmetic does not go unnoticed.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-04-10 17:20:42 +02:00
Loic Dachary b5ac2580c2 TODO reminder for KMG/JSP about hardcoded constant
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-04-10 16:59:38 +02:00
Kevin Greenan 8a96cbb371 Ran autogen to pick-up the changes needed to run 'make check' 2014-04-02 10:35:21 -07:00
Kevin Greenan 31baa17519 Merged in dachary/gf-complete/wip-make-check (pull request #11)
add make check target and basic tests
2014-04-02 10:21:40 -07:00
Loic Dachary c18b97cd02 add make check target and basic tests
To conveniently run tests as

 $ make check
 ============================================================================
 Testsuite summary for gf-complete 1.0
 ============================================================================
 # TOTAL: 1
 # PASS:  1
 # SKIP:  0
 # XFAIL: 0
 # FAIL:  0
 # XPASS: 0
 # ERROR: 0
 ============================================================================

The run-tests.sh script loops over gf_methods and is introduced because
autotools does not allow tests to have parameters in the Makefile.am

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-04-02 17:57:15 +02:00
Kevin Greenan 4c84a3b650 Merged in dachary/gf-complete/wip-compilation-warnings (pull request #12)
fix void* arithmetic compilation warning
2014-03-31 08:53:14 -07:00
Kevin Greenan 37d6a1b217 Merged in dachary/gf-complete/wip-sse4 (pull request #13)
do not compile if used in SSE4 code path only
2014-03-31 08:42:20 -07:00
Kevin Greenan 1aef6384e7 Merged in dachary/gf-complete/wip-gitignore (pull request #10)
.gitignore: ignore autotools stuff
2014-03-31 08:04:23 -07:00
Loic Dachary d569220629 do not compile if used in SSE4 code path only
Acknowledge that gf_w128_split_4_128_multiply_region and
gf_w128_split_4_128_sse_multiply_region are only used when the
INTEL_SSE4 flag is present, even though they only need INTEL_SSSE3

It suppresses a compilation warning complaining about them not being
used if INTEL_SSE4 is absent and INTEL_SSSE3 is present.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-30 00:06:48 +01:00
Loic Dachary ce61fb053d fix void* arithmetic compilation warning
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-29 23:51:34 +01:00
Sage Weil 47a25981c1 .gitignore: ignore autotools stuff
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit c70286782425b1f792313e4fd1ce1773c72dcd76)
2014-03-28 17:50:27 +01:00
Kevin Greenan c61ad61b43 Merged in dachary/gf-complete/wip-gitignore (pull request #6)
create a .gitignore
2014-03-28 09:09:43 -07:00
Kevin Greenan 3127a3cc97 Merged in dachary/gf-complete/wip-compilation-warnings (pull request #3)
fix compilation warnings
2014-03-28 08:26:19 -07:00
Loic Dachary 20a242d9dd remove unused static function gf_w128_group_r_sse_init
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-28 16:06:29 +01:00
Loic Dachary 87ed6898ad create a .gitignore
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-19 14:18:09 +01:00
Loic Dachary cfcc1881ea remove unused argument from SSE_AB2
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:48:38 +01:00
Loic Dachary 5c5b312a76 main() returns int
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:48:38 +01:00
Loic Dachary 191b86b5d2 remove unused variables from #if SSE blocs
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:48:38 +01:00
Loic Dachary 59cb51046b remove spurious i < in for loop
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:48:38 +01:00
Loic Dachary cc45e19026 do not use gf_internal_t when it is null
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:48:12 +01:00
Loic Dachary 3c4a451b50 silence some warnings for unset variables
By setting them when they are defined and when the compiler fails to see
the logic is ok.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:47:59 +01:00
Loic Dachary d8863ceff7 remove duplicate headers from src
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:32:41 +01:00
Loic Dachary 29899ad443 move #if to avoid unused warning
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:32:30 +01:00
Loic Dachary 0020ff8092 initialize pointer early in the function
otherwise it may be used uninitialized

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:29:58 +01:00
Loic Dachary d36bd6e540 cast void* to char* for pointer arithmetic
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 17:29:36 +01:00
Loic Dachary f043479e3c remove unused variables
In some places move variables in the scope of the CPP define where they
are used.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-06 15:15:22 +01:00