diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-08-16 00:30:02 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-08-16 00:30:02 +0000 |
commit | de03c5e924225ce4939674db845e8752006604b8 (patch) | |
tree | e6f9a39e05c546813eaf190c5c9e39684e59f714 /Build/source/libs/graphite2/graphite2-src/src/inc/Compression.h | |
parent | 85d218211e4fa3ff701221f15c1e4e475fe94793 (diff) |
graphite2 1.3.12
git-svn-id: svn://tug.org/texlive/trunk@48409 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/graphite2/graphite2-src/src/inc/Compression.h')
-rw-r--r-- | Build/source/libs/graphite2/graphite2-src/src/inc/Compression.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Build/source/libs/graphite2/graphite2-src/src/inc/Compression.h b/Build/source/libs/graphite2/graphite2-src/src/inc/Compression.h index 6596af2ffa4..9fe10e025d6 100644 --- a/Build/source/libs/graphite2/graphite2-src/src/inc/Compression.h +++ b/Build/source/libs/graphite2/graphite2-src/src/inc/Compression.h @@ -15,8 +15,8 @@ You should also have received a copy of the GNU Lesser General Public License along with this library in the file named "LICENSE". - If not, write to the Free Software Foundation, 51 Franklin Street, - Suite 500, Boston, MA 02110-1335, USA or visit their web page on the + If not, write to the Free Software Foundation, 51 Franklin Street, + Suite 500, Boston, MA 02110-1335, USA or visit their web page on the internet at http://www.fsf.org/licenses/lgpl.html. Alternatively, the contents of this file may be used under the terms of the @@ -53,7 +53,7 @@ ptrdiff_t const MINMATCH = 4, MINSRCSIZE = 13; template<int S> -inline +inline void unaligned_copy(void * d, void const * s) { ::memcpy(d, s, S); } @@ -63,7 +63,7 @@ size_t align(size_t p) { return (p + sizeof(unsigned long)-1) & ~(sizeof(unsigned long)-1); } -inline +inline u8 * safe_copy(u8 * d, u8 const * s, size_t n) { while (n--) *d++ = *s++; return d; @@ -73,7 +73,7 @@ inline u8 * overrun_copy(u8 * d, u8 const * s, size_t n) { size_t const WS = sizeof(unsigned long); u8 const * e = s + n; - do + do { unaligned_copy<WS>(d, s); d += WS; @@ -81,7 +81,7 @@ u8 * overrun_copy(u8 * d, u8 const * s, size_t n) { } while (s < e); d-=(s-e); - + return d; } @@ -90,7 +90,7 @@ inline u8 * fast_copy(u8 * d, u8 const * s, size_t n) { size_t const WS = sizeof(unsigned long); size_t wn = n/WS; - while (wn--) + while (wn--) { unaligned_copy<WS>(d, s); d += WS; @@ -102,5 +102,3 @@ u8 * fast_copy(u8 * d, u8 const * s, size_t n) { } // end of anonymous namespace - - |