From 64aeff91e15d4f829a125ad3280c63958a9af84c Mon Sep 17 00:00:00 2001 From: whh8b <whh8b@git.zephyr-software.com> Date: Thu, 9 Jun 2016 03:37:25 +0000 Subject: [PATCH] Add SHORT_ and LONG_ PIN_SIZE constants. --- include/zipr_utils.h | 2 ++ src/utils.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/zipr_utils.h b/include/zipr_utils.h index 8beb158..d5c5769 100644 --- a/include/zipr_utils.h +++ b/include/zipr_utils.h @@ -5,6 +5,8 @@ namespace Utils { extern size_t CALLBACK_TRAMPOLINE_SIZE; extern size_t TRAMPOLINE_SIZE; + extern size_t LONG_PIN_SIZE; + extern size_t SHORT_PIN_SIZE; void PrintStat(std::ostream &out, std::string description, double value); int DetermineWorstCaseInsnSize(libIRDB::Instruction_t*, bool account_for_jump = true); diff --git a/src/utils.cpp b/src/utils.cpp index 9340d87..c4bb3fd 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -10,6 +10,8 @@ void PrintStat(std::ostream &out, std::string description, double value) size_t CALLBACK_TRAMPOLINE_SIZE=9; size_t TRAMPOLINE_SIZE=5; +size_t SHORT_PIN_SIZE=2; +size_t LONG_PIN_SIZE=5; using namespace libIRDB; size_t DetermineWorstCaseDollopSizeInclFallthrough(Dollop_t *dollop) -- GitLab