-
Notifications
You must be signed in to change notification settings - Fork 3
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 #3 from mklarqvist/build-dev
Major updates for build process; filtering and slicing
- Loading branch information
Showing
49 changed files
with
2,551 additions
and
1,688 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,7 @@ | |
*.app | ||
bin/ | ||
**/.DS_Store | ||
|
||
# Externals | ||
openssl/ | ||
zstd/ |
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,27 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project> | ||
<configuration id="cdt.managedbuild.toolchain.gnu.cross.base.340329375" name="build"> | ||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider"> | ||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/> | ||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/> | ||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser" keep-relative-paths="false" name="CDT GCC Build Output Parser" parameter="(g?cc)|([gc]\+\+)|(clang)" prefer-non-shared="true"/> | ||
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="1364303945936347282" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true"> | ||
<language-scope id="org.eclipse.cdt.core.gcc"/> | ||
<language-scope id="org.eclipse.cdt.core.g++"/> | ||
</provider> | ||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/> | ||
</extension> | ||
</configuration> | ||
<configuration id="cdt.managedbuild.toolchain.gnu.cross.base.340329375.140199204" name="library"> | ||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider"> | ||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/> | ||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/> | ||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/> | ||
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="1364303945936347282" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true"> | ||
<language-scope id="org.eclipse.cdt.core.gcc"/> | ||
<language-scope id="org.eclipse.cdt.core.g++"/> | ||
</provider> | ||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/> | ||
</extension> | ||
</configuration> | ||
|
||
<configuration id="cdt.managedbuild.toolchain.gnu.cross.base.340329375" name="build"> | ||
|
||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider"> | ||
|
||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/> | ||
|
||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/> | ||
|
||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/> | ||
|
||
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="-1873167801090117660" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true"> | ||
|
||
<language-scope id="org.eclipse.cdt.core.gcc"/> | ||
|
||
<language-scope id="org.eclipse.cdt.core.g++"/> | ||
|
||
</provider> | ||
|
||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/> | ||
|
||
</extension> | ||
|
||
</configuration> | ||
|
||
<configuration id="cdt.managedbuild.toolchain.gnu.cross.base.340329375.140199204" name="library"> | ||
|
||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider"> | ||
|
||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/> | ||
|
||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/> | ||
|
||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/> | ||
|
||
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="-1873167801090117660" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true"> | ||
|
||
<language-scope id="org.eclipse.cdt.core.gcc"/> | ||
|
||
<language-scope id="org.eclipse.cdt.core.g++"/> | ||
|
||
</provider> | ||
|
||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/> | ||
|
||
</extension> | ||
|
||
</configuration> | ||
|
||
</project> |
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
File renamed without changes.
110 changes: 110 additions & 0 deletions
110
lib/containers/components/data_container_header_object.cpp
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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
#include "data_container_header_object.h" | ||
|
||
namespace tachyon{ | ||
namespace containers{ | ||
|
||
DataContainerHeaderObject::DataContainerHeaderObject() : | ||
stride(1), | ||
offset(0), | ||
cLength(0), | ||
uLength(0), | ||
eLength(0), | ||
crc(0), | ||
global_key(-1) | ||
{} | ||
|
||
DataContainerHeaderObject::DataContainerHeaderObject(const DataContainerHeaderObject& other) : | ||
controller(other.controller), | ||
stride(other.stride), | ||
offset(other.offset), | ||
cLength(other.cLength), | ||
uLength(other.uLength), | ||
eLength(other.eLength), | ||
crc(other.crc), | ||
global_key(other.global_key) | ||
{ | ||
} | ||
|
||
DataContainerHeaderObject::DataContainerHeaderObject(DataContainerHeaderObject&& other) noexcept : | ||
controller(other.controller), | ||
stride(other.stride), | ||
offset(other.offset), | ||
cLength(other.cLength), | ||
uLength(other.uLength), | ||
eLength(other.eLength), | ||
crc(other.crc), | ||
global_key(other.global_key) | ||
{ | ||
|
||
} | ||
|
||
// copy assignment | ||
DataContainerHeaderObject& DataContainerHeaderObject::operator=(const DataContainerHeaderObject& other){ | ||
this->controller = other.controller; | ||
this->stride = other.stride; | ||
this->offset = other.offset; | ||
this->cLength = other.cLength; | ||
this->uLength = other.uLength; | ||
this->eLength = other.eLength; | ||
this->crc = other.crc; | ||
this->global_key = other.global_key; | ||
return *this; | ||
} | ||
|
||
|
||
/** Move assignment operator */ | ||
DataContainerHeaderObject& DataContainerHeaderObject::operator=(DataContainerHeaderObject&& other) noexcept{ | ||
this->controller = other.controller; | ||
this->stride = other.stride; | ||
this->offset = other.offset; | ||
this->cLength = other.cLength; | ||
this->uLength = other.uLength; | ||
this->eLength = other.eLength; | ||
this->crc = other.crc; | ||
this->global_key = other.global_key; | ||
return *this; | ||
} | ||
|
||
DataContainerHeaderObject::~DataContainerHeaderObject(){ } | ||
|
||
void DataContainerHeaderObject::reset(void){ | ||
this->controller.clear(); | ||
this->stride = 1; | ||
this->offset = 0; | ||
this->cLength = 0; | ||
this->uLength = 0; | ||
this->crc = 0; | ||
this->global_key = -1; | ||
} | ||
|
||
const bool DataContainerHeaderObject::operator==(const self_type& other) const{ | ||
if(this->stride != other.stride) return false; | ||
if(this->offset != other.offset) return false; | ||
if(this->cLength != other.cLength) return false; | ||
if(this->uLength != other.uLength) return false; | ||
if(this->eLength != other.eLength) return false; | ||
if(this->crc != other.crc) return false; | ||
if(this->global_key != other.global_key) return false; | ||
if(this->controller != other.controller) return false; | ||
return true; | ||
} | ||
|
||
const SBYTE DataContainerHeaderObject::getPrimitiveWidth(void) const{ | ||
// We do not care about signedness here | ||
switch(this->controller.type){ | ||
case(YON_TYPE_UNKNOWN): | ||
case(YON_TYPE_STRUCT): return(-1); | ||
case(YON_TYPE_BOOLEAN): | ||
case(YON_TYPE_CHAR): return(sizeof(char)); | ||
case(YON_TYPE_8B): return(sizeof(BYTE)); | ||
case(YON_TYPE_16B): return(sizeof(U16)); | ||
case(YON_TYPE_32B): return(sizeof(U32)); | ||
case(YON_TYPE_64B): return(sizeof(U64)); | ||
case(YON_TYPE_FLOAT): return(sizeof(float)); | ||
case(YON_TYPE_DOUBLE): return(sizeof(double)); | ||
} | ||
return 0; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.