04-04-09-IQ

From Msim

Jump to: navigation, search

This refers to the fixes to iq.h and iq.c to improve performance.


No longer assume the compiler will elide these functions from iq.h, this guarantees the avoidance of extra copies:
Old:

inline int & operator[](unsigned int index)

New:

inline int & operator[](const unsigned int & index)

Old:

inline const int & operator[](unsigned int index) const

New:

inline const int & operator[](const unsigned int & index) const

Enforce constness in iq.h:
Old:

void resize(int size);

New:

void resize(const int size);

Old:

void free_iq_entry(unsigned int entry_num);

New:

void free_iq_entry(const unsigned int entry_num);

Enforce constness in iq.c:
Old:

void issue_queue_t::free_iq_entry(unsigned int entry_num)

New:

void issue_queue_t::free_iq_entry(const unsigned int entry_num)
Personal tools