Star.hpp   Star.hpp 
skipping to change at line 54 skipping to change at line 54
// makes it feasable to store hundreds of millions of them in main memory. // makes it feasable to store hundreds of millions of them in main memory.
static inline float IndexToBV(unsigned char bV) { static inline float IndexToBV(unsigned char bV) {
return (float)bV*(4.f/127.f)-0.5f; return (float)bV*(4.f/127.f)-0.5f;
} }
#if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__)) #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
#pragma pack(1) #pragma pack(1)
#endif #endif
struct Star1 { // 28 byte struct Star1 { // 28 byte
#ifdef _MSC_BUILD
unsigned int hip:24; // 17 bits needed
unsigned int componentIds:8; // 5 bits needed
#else
int hip:24; // 17 bits needed int hip:24; // 17 bits needed
unsigned char componentIds; // 5 bits needed unsigned char componentIds; // 5 bits needed
#endif
Int32 x0; // 32 bits needed Int32 x0; // 32 bits needed
Int32 x1; // 32 bits needed Int32 x1; // 32 bits needed
unsigned char bV; // 7 bits needed unsigned char bV; // 7 bits needed
unsigned char mag; // 8 bits needed unsigned char mag; // 8 bits needed
Uint16 spInt; // 14 bits needed Uint16 spInt; // 14 bits needed
Int32 dx0,dx1,plx; Int32 dx0,dx1,plx;
enum {MaxPosVal=0x7FFFFFFF}; enum {MaxPosVal=0x7FFFFFFF};
StelObjectP createStelObject(const SpecialZoneArray<Star1> *a, StelObjectP createStelObject(const SpecialZoneArray<Star1> *a,
const SpecialZoneData<Star1> *z) co nst; const SpecialZoneData<Star1> *z) co nst;
void getJ2000Pos(const ZoneData *z,float movementFactor, Vec3f& pos) cons t { void getJ2000Pos(const ZoneData *z,float movementFactor, Vec3f& pos) cons t {
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/