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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9347abfe
Commit
9347abfe
authored
Mar 22, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified rounding up to nearest 64-bit boundry
parent
2adabcb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ndb/src/ndbapi/DictCache.cpp
ndb/src/ndbapi/DictCache.cpp
+1
-3
No files found.
ndb/src/ndbapi/DictCache.cpp
View file @
9347abfe
...
@@ -24,9 +24,7 @@
...
@@ -24,9 +24,7 @@
Ndb_local_table_info
*
Ndb_local_table_info
*
Ndb_local_table_info
::
create
(
NdbTableImpl
*
table_impl
,
Uint32
sz
)
Ndb_local_table_info
::
create
(
NdbTableImpl
*
table_impl
,
Uint32
sz
)
{
{
Uint32
tot_size
=
sizeof
(
NdbTableImpl
*
)
+
sz
;
Uint32
tot_size
=
sizeof
(
NdbTableImpl
*
)
+
((
sz
+
7
)
>>
3
)
<<
3
;
// round to Uint64
if
(
sz
%
8
!=
0
)
tot_size
+=
sz
%
8
;
// round to Uint64
void
*
data
=
malloc
(
tot_size
);
void
*
data
=
malloc
(
tot_size
);
if
(
data
==
0
)
if
(
data
==
0
)
return
0
;
return
0
;
...
...
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