-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from giuseppe/perf-improvements
fuse-overlayfs: different performance tweaks
- Loading branch information
Showing
33 changed files
with
1,081 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* bitrotate.h - Rotate bits in integers | ||
Copyright (C) 2008-2017 Free Software Foundation, Inc. | ||
Copyright (C) 2008-2019 Free Software Foundation, Inc. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -12,7 +12,7 @@ | |
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. */ | ||
|
||
/* Written by Simon Josefsson <[email protected]>, 2008. */ | ||
|
||
|
@@ -95,7 +95,8 @@ rotr_sz (size_t x, int n) | |
BITROTATE_INLINE uint16_t | ||
rotl16 (uint16_t x, int n) | ||
{ | ||
return ((x << n) | (x >> (16 - n))) & UINT16_MAX; | ||
return (((unsigned int) x << n) | ((unsigned int) x >> (16 - n))) | ||
& UINT16_MAX; | ||
} | ||
|
||
/* Given an unsigned 16-bit argument X, return the value corresponding | ||
|
@@ -106,7 +107,8 @@ rotl16 (uint16_t x, int n) | |
BITROTATE_INLINE uint16_t | ||
rotr16 (uint16_t x, int n) | ||
{ | ||
return ((x >> n) | (x << (16 - n))) & UINT16_MAX; | ||
return (((unsigned int) x >> n) | ((unsigned int) x << (16 - n))) | ||
& UINT16_MAX; | ||
} | ||
|
||
/* Given an unsigned 8-bit argument X, return the value corresponding | ||
|
@@ -117,7 +119,7 @@ rotr16 (uint16_t x, int n) | |
BITROTATE_INLINE uint8_t | ||
rotl8 (uint8_t x, int n) | ||
{ | ||
return ((x << n) | (x >> (8 - n))) & UINT8_MAX; | ||
return (((unsigned int) x << n) | ((unsigned int) x >> (8 - n))) & UINT8_MAX; | ||
} | ||
|
||
/* Given an unsigned 8-bit argument X, return the value corresponding | ||
|
@@ -128,7 +130,7 @@ rotl8 (uint8_t x, int n) | |
BITROTATE_INLINE uint8_t | ||
rotr8 (uint8_t x, int n) | ||
{ | ||
return ((x >> n) | (x << (8 - n))) & UINT8_MAX; | ||
return (((unsigned int) x >> n) | ((unsigned int) x << (8 - n))) & UINT8_MAX; | ||
} | ||
|
||
_GL_INLINE_HEADER_END | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* hash - hashing table processing. | ||
Copyright (C) 1998-1999, 2001, 2003, 2009-2017 Free Software Foundation, | ||
Copyright (C) 1998-1999, 2001, 2003, 2009-2019 Free Software Foundation, | ||
Inc. | ||
Written by Jim Meyering <[email protected]>, 1998. | ||
|
@@ -14,7 +14,7 @@ | |
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. */ | ||
|
||
/* A generic hash table package. */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Copyright (C) 2001-2003, 2006-2017 Free Software Foundation, Inc. | ||
/* Copyright (C) 2001-2003, 2006-2019 Free Software Foundation, Inc. | ||
Written by Bruno Haible <[email protected]>, 2001. | ||
This program is free software; you can redistribute it and/or modify | ||
|
@@ -12,7 +12,7 @@ | |
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, see <http://www.gnu.org/licenses/>. */ | ||
along with this program; if not, see <https://www.gnu.org/licenses/>. */ | ||
|
||
#ifndef _GL_STDBOOL_H | ||
#define _GL_STDBOOL_H | ||
|
@@ -82,9 +82,9 @@ typedef bool _Bool; | |
/* If @HAVE__BOOL@: | ||
Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when | ||
the built-in _Bool type is used. See | ||
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | ||
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | ||
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html | ||
https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | ||
https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html | ||
https://lists.gnu.org/r/bug-coreutils/2005-10/msg00086.html | ||
Similar bugs are likely with other compilers as well; this file | ||
wouldn't be used if <stdbool.h> was working. | ||
So we override the _Bool type. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.