mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[apps] Use crc32 methods in models
Change-Id: I2c0588eef90c8015d13fd7aed87a4b615243fe5c
This commit is contained in:
@@ -3,6 +3,7 @@ extern "C" {
|
||||
#include <assert.h>
|
||||
}
|
||||
#include <stddef.h>
|
||||
#include <ion.h>
|
||||
|
||||
namespace Graph {
|
||||
|
||||
@@ -19,8 +20,7 @@ FunctionStore::FunctionStore() :
|
||||
uint32_t FunctionStore::storeChecksum() {
|
||||
size_t dataLengthInBytes = m_numberOfFunctions*sizeof(Function);
|
||||
assert((dataLengthInBytes & 0x3) == 0); // Assert that dataLengthInBytes is a multiple of 4
|
||||
//return Ion::crc32((uint32_t *)m_functions, dataLengthInBytes>>2);
|
||||
return m_numberOfFunctions;
|
||||
return Ion::crc32((uint32_t *)m_functions, dataLengthInBytes>>2);
|
||||
}
|
||||
|
||||
Function * FunctionStore::functionAtIndex(int i) {
|
||||
|
||||
Reference in New Issue
Block a user