Skip to content

Commit

Permalink
Merge pull request #5747 from ymanton/ccdata
Browse files Browse the repository at this point in the history
Remove inline from CCData static member funcs
  • Loading branch information
0xdaryl committed Jan 15, 2021
2 parents 1e63531 + f4a99dd commit 7be07ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/codegen/CCData.cpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020, 2020 IBM Corp. and others
* Copyright (c) 2020, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -29,19 +29,16 @@

using TR::CCData;

inline
size_t CCData::dataSizeFromBytesSize(size_t sizeBytes)
{
return (sizeBytes + sizeof(data_t) - 1) / sizeof(data_t);
}

inline
size_t CCData::dataAlignmentFromBytesAlignment(size_t alignmentBytes)
{
return (alignmentBytes + OMR_ALIGNOF(data_t) - 1) / OMR_ALIGNOF(data_t);
}

inline
size_t CCData::byteIndexFromDataIndex(size_t dataIndex)
{
return dataIndex * sizeof(data_t);
Expand Down

0 comments on commit 7be07ce

Please sign in to comment.