Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c6017b77
Commit
c6017b77
authored
Dec 09, 2016
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address my review comments in the contributed patch.
parent
64d29c65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
storage/innobase/include/ut0crc32.h
storage/innobase/include/ut0crc32.h
+2
-1
storage/innobase/ut/ut0crc32.cc
storage/innobase/ut/ut0crc32.cc
+3
-2
No files found.
storage/innobase/include/ut0crc32.h
View file @
c6017b77
/*****************************************************************************
Copyright (c) 2011, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, MariaDB Corporation.
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 the Free Software
...
...
@@ -54,6 +55,6 @@ extern ut_crc32_func_t ut_crc32_legacy_big_endian;
but very slow). */
extern
ut_crc32_func_t
ut_crc32_byte_by_byte
;
extern
const
char
*
ut_crc32_implementation
;
extern
const
char
*
ut_crc32_implementation
;
#endif
/* ut0crc32_h */
storage/innobase/ut/ut0crc32.cc
View file @
c6017b77
...
...
@@ -2,6 +2,7 @@
Copyright (c) 2009, 2010 Facebook, Inc. All Rights Reserved.
Copyright (c) 2011, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, MariaDB Corporation.
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 the Free Software
...
...
@@ -97,7 +98,7 @@ but very slow). */
ut_crc32_func_t
ut_crc32_byte_by_byte
;
/** Text description of CRC32 implementation */
const
char
*
ut_crc32_implementation
=
NULL
;
const
char
*
ut_crc32_implementation
;
/** Swap the byte order of an 8 byte integer.
@param[in] i 8-byte integer
...
...
@@ -731,7 +732,7 @@ ut_crc32_init()
*/
if
(
(
features_ecx
>>
20
)
&
1
)
{
if
(
features_ecx
&
1
<<
20
)
{
ut_crc32
=
ut_crc32_hw
;
ut_crc32_legacy_big_endian
=
ut_crc32_legacy_big_endian_hw
;
ut_crc32_byte_by_byte
=
ut_crc32_byte_by_byte_hw
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment