Skip to content

Commit

Permalink
fix bugs on msst struct declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin Liang authored and Xin Liang committed Mar 8, 2019
1 parent d31b1ab commit 65e5095
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sz/include/MultiLevelCacheTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ extern "C" {
#include <stdlib.h>
#include "stdio.h"

struct SubLevelTable{
typedef struct SubLevelTable{
uint32_t baseIndex;
uint32_t topIndex;
uint32_t* table;
uint8_t expoIndex;
}SubLevelTable;
} SubLevelTable;

struct TopLevelTable{
typedef struct TopLevelTable{
uint8_t bits;
uint8_t baseIndex;
uint8_t topIndex;
struct SubLevelTable* subTables;
float bottomBoundary;
float topBoundary;
}TopLevelTable;
} TopLevelTable;

uint8_t MLCT_GetExpoIndex(float value);
uint8_t MLCT_GetRequiredBits(float precision);
Expand Down
4 changes: 2 additions & 2 deletions sz/include/MultiLevelCacheTableWideInterval.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ extern "C" {
#include <stdlib.h>
#include "stdio.h"

struct SubLevelTableWideInterval{
typedef struct SubLevelTableWideInterval{
uint64_t baseIndex;
uint64_t topIndex;
uint16_t* table;
uint16_t expoIndex;
} SubLevelTableWideInterval;

struct TopLevelTableWideInterval{
typedef struct TopLevelTableWideInterval{
uint16_t bits;
uint16_t baseIndex;
uint16_t topIndex;
Expand Down

0 comments on commit 65e5095

Please sign in to comment.