* Changed swap* functions to both return, and take a reference

* Fixed writeInt64 in FileWriter
* Fixed ec.cpp on big endian systems
This commit is contained in:
2014-04-25 15:17:52 -07:00
parent b7c359ea40
commit 6150d728a5
4 changed files with 29 additions and 22 deletions

View File

@@ -27,12 +27,12 @@ namespace utility
{
bool isEmpty(Int8*, Uint32);
Uint16 swapU16(Uint16 val );
Int16 swap16 (Int16 val );
Uint32 swapU32(Uint32 val);
Int32 swap32 (Int32 val );
Uint64 swapU64(Uint64 val);
Int64 swap64 (Int64 val);
Uint16 swapU16(Uint16& val );
Int16 swap16 (Int16& val );
Uint32 swapU32(Uint32& val);
Int32 swap32 (Int32& val );
Uint64 swapU64(Uint64& val);
Int64 swap64 (Int64& val);
float swapFloat(float val);
double swapDouble(double val);