added newest G3D(lite) + VS project files

stripped, but can be stripped more later

--HG--
branch : trunk
This commit is contained in:
Rat
2010-06-07 00:09:54 +02:00
parent 910980d3c6
commit b86a4f58f1
200 changed files with 68138 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
/**
@file uint128.h
@maintainer Morgan McGuire, [email protected]
@author Kyle Whitson
@created 2008-07-17
@edited 2008-07-17
*/
#ifndef G3D_UINT128_H
#define G3D_UINT128_H
#include "G3D/g3dmath.h"
namespace G3D {
/** Limited functionality 128-bit unsigned integer. This is primarily to support FNV hashing and other
cryptography applications. See the GMP library for high-precision C++ math support. */
class uint128 {
public:
G3D::uint64 hi;
G3D::uint64 lo;
uint128(const uint64& lo);
uint128(const uint64& hi, const uint64& lo);
uint128& operator+=(const uint128& x);
uint128& operator*=(const uint128& x);
uint128& operator^=(const uint128& x);
uint128& operator&=(const uint128& x);
uint128& operator|=(const uint128& x);
bool operator==(const uint128& x);
uint128& operator>>=(const int x);
uint128& operator<<=(const int x);
uint128 operator&(const uint128& x);
};
}
#endif