convert all line-endings to unix. remove slot.h.

This commit is contained in:
swaits committed 2010-10-04 21:48:02 -07:00
1 parent 8ba8303868
commit 1ee19a654d
26 files changed
+4541 -4627

No files matched your search

+53 -53
View File
@@ -1,53 +1,53 @@
#include "slot_base.h"
bool slot_base::data_container::operator== (const slot_base::data_container& other) const
{
// do a wordwise comparison
for (int i=0;i<SIZE_IN_WORDS;++i)
{
if ( this->data[i] != other.data[i] )
{
return false;
}
}
// must be a perfect match
return true;
}
void slot_base::data_container::zero()
{
// do a bytewise zeroing
for (int i=0;i<SIZE_IN_WORDS;++i)
{
this->data[i] = 0;
}
}
slot_base::slot_base ()
{
for (int i=0;i<NUM_DATA_ITEMS;++i)
{
data[i].zero();
}
}
slot_base::~slot_base ()
{
// empty
}
bool slot_base::operator== (const slot_base& other) const
{
// check each data item for inequality
for (int i=0;i<NUM_DATA_ITEMS;++i)
{
if ( !(this->data[i] == other.data[i]) )
return false;
}
// all data matched
return true;
}
#include "slot_base.h"
bool slot_base::data_container::operator== (const slot_base::data_container& other) const
{
// do a wordwise comparison
for (int i=0;i<SIZE_IN_WORDS;++i)
{
if ( this->data[i] != other.data[i] )
{
return false;
}
}
// must be a perfect match
return true;
}
void slot_base::data_container::zero()
{
// do a bytewise zeroing
for (int i=0;i<SIZE_IN_WORDS;++i)
{
this->data[i] = 0;
}
}
slot_base::slot_base ()
{
for (int i=0;i<NUM_DATA_ITEMS;++i)
{
data[i].zero();
}
}
slot_base::~slot_base ()
{
// empty
}
bool slot_base::operator== (const slot_base& other) const
{
// check each data item for inequality
for (int i=0;i<NUM_DATA_ITEMS;++i)
{
if ( !(this->data[i] == other.data[i]) )
return false;
}
// all data matched
return true;
}