Config script option to disable AVX.
Fix compiler (Gcc 4.9) warnings.
This commit is contained in:
parent
125828b6b3
commit
a62e1aa5f7
3 changed files with 8 additions and 2 deletions
|
@ -62,9 +62,12 @@ static bsize_t
|
|||
BUFREAD(bufio_t *bio, uchar_t *buf, bsize_t len)
|
||||
{
|
||||
bsize_t actual;
|
||||
unsigned int tot;
|
||||
|
||||
actual = len;
|
||||
if (bio->pos + len > bio->buflen) {
|
||||
tot = len;
|
||||
tot += bio->pos;
|
||||
if (tot > bio->buflen) {
|
||||
actual = bio->buflen - bio->pos;
|
||||
}
|
||||
if (actual == 0) return (0);
|
||||
|
|
3
config
3
config
|
@ -200,6 +200,9 @@ do
|
|||
sse_detect=0
|
||||
avx_detect=0
|
||||
;;
|
||||
--no-avx-detect)
|
||||
avx_detect=0
|
||||
;;
|
||||
--no-1.3-archive-compat)
|
||||
crypto_compat_objs=""
|
||||
crypto_compat_flags=""
|
||||
|
|
|
@ -181,7 +181,7 @@ create_dedupe_context(uint64_t chunksize, uint64_t real_chunksize, int rab_blk_s
|
|||
*/
|
||||
pthread_mutex_lock(&init_lock);
|
||||
if (!inited) {
|
||||
int term, pow, j;
|
||||
unsigned int term, pow, j;
|
||||
uint64_t val, poly_pow;
|
||||
|
||||
poly_pow = 1;
|
||||
|
|
Loading…
Reference in a new issue