server/dep/include/g3dlite/G3D/uint128.h
Lynx3d ae3ad10bcf [10097] Update G3D up to v8.0b4
+ Got rid of zip lib requirement in G3D...
  Still can re-enable code by defining _HAVE_ZIP...

+ Remove silly X11 lib dependency from G3D
  Code doesn't seem to do anything yet anyway, and even if, we don't want it :p

+ Fix another weird G3D build problem...

+ Remove some __asm usage in g3d, which is not available on Win64
  My editor also decided to remove a ton of trailing white spaces...tss...

+ Reapply G3D fixes for 64bit VC

+ not use SSE specific header when SSE not enabled in *nix

+ Updated project files

+ New vmap_assembler VC90/VC80 Project

+ vmap assembler binaries updates

NOTE: Old vmap fikes expected work (as tests show) with new library version.
      But better use new generated versions. Its different in small parts to bad or good...

(based on Lynx3d's repo commit 44798d3)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-23 06:45:25 +04:00

51 lines
954 B
C++

/**
@file uint128.h
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
@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