Home

Resume

Blog

Teikitu


// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
//  »Project«   Teikitu Gaming System (TgS) (∂)
//  »File«      TgS Common - Base - Type [Limits].h
//  »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
//  »Version«   4.0
// ------------------------------------------------------------------------------------------------------------------------------ //
//  Copyright: © 2002-2010, Andrew Aye.  All Rights Reserved.
//  This software is free for non-commercial use. Redistribution and use in source and binary forms, with or without modification,
//  are permitted provided that the following conditions are met: 
//    Redistributions of source code must retain this copyright notice, this list of conditions and the following disclaimers. 
//    Redistributions in binary form must reproduce this copyright notice, this list of conditions and the following
//      disclaimers in the documentation and other materials provided with the distribution. 
//  Neither the names of the copyright owner nor the names of its contributors may be used to endorse or promote products derived
//  from this software without specific prior written permission. 
//  The intellectual property rights of the algorithms used reside with Andrew Aye.  You may not use this software, in whole or
//  in part, in support of any commercial product without the express written consent of the author.
//  There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
#if !defined(_TGS_COMMON_BASE_TYPE_LIMITS_H_)
#define _TGS_COMMON_BASE_TYPE_LIMITS_H_
#pragma once


// -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. //
//  Constants
// -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. //

typedef union TgALIGN(8)
{
    TgUINT64                                    m_ui64;
    TgUINT32                                    m_ui32;
    TgFLOAT64                                   m_f64;
    TgFLOAT32                                   m_f32;
} TgMASK_TYPE;

extern const TgMASK_TYPE                    KTgMASK_TRUE;

extern C_TgUINT08                           KTgMIN_U08;
extern C_TgUINT16                           KTgMIN_U16;
extern C_TgUINT32                           KTgMIN_U32;
extern C_TgUINT64                           KTgMIN_U64;
extern C_TgSINT08                           KTgMIN_S08;
extern C_TgSINT16                           KTgMIN_S16;
extern C_TgSINT32                           KTgMIN_S32;
extern C_TgSINT64                           KTgMIN_S64;
extern C_TgFLOAT32                          KTgMIN_F32;
extern C_TgFLOAT64                          KTgMIN_F64;

extern C_TgUINT08                           KTgMAX_U08;
extern C_TgUINT16                           KTgMAX_U16;
extern C_TgUINT32                           KTgMAX_U32;
extern C_TgUINT64                           KTgMAX_U64;
extern C_TgSINT08                           KTgMAX_S08;
extern C_TgSINT16                           KTgMAX_S16;
extern C_TgSINT32                           KTgMAX_S32;
extern C_TgSINT64                           KTgMAX_S64;
extern C_TgFLOAT32                          KTgMAX_F32;
extern C_TgFLOAT64                          KTgMAX_F64;

extern C_TgFLOAT32                          KTgEPS_F32;
extern C_TgFLOAT32                          KTgROOT_EPS_F32;
extern C_TgFLOAT64                          KTgEPS_F64;
extern C_TgFLOAT64                          KTgROOT_EPS_F64;

enum { ETgHASH_SM_SIZE                      = 53 };
enum { ETgHASH_MD_SIZE                      = 5003 };
enum { ETgHASH_LG_SIZE                      = 12289 };
extern C_TgSIZE                             KTgSIZE_MAX;

extern C_TgUINT32                           KTgEMPTY_HASH;

#endif //  END  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////