2014-08-04 03:36:20 -05:00
|
|
|
// vim: set ts=4 sw=4 tw=99 noet:
|
|
|
|
//
|
|
|
|
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
|
|
// Copyright (C) The AMX Mod X Development Team.
|
|
|
|
//
|
|
|
|
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
|
|
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
|
|
// https://alliedmods.net/amxmodx-license
|
|
|
|
|
2006-02-10 15:43:27 +00:00
|
|
|
#ifndef _INCLUDE_AMXMODX_OPTIMIZER_H
|
|
|
|
#define _INCLUDE_AMXMODX_OPTIMIZER_H
|
|
|
|
|
|
|
|
#include "amx.h"
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
N_Float_Mul=0,
|
|
|
|
N_Float_Div,
|
|
|
|
N_Float_Add,
|
|
|
|
N_Float_Sub,
|
|
|
|
N_Float_To,
|
|
|
|
N_Float_Round,
|
2006-02-11 07:06:35 +00:00
|
|
|
N_Float_Cmp,
|
|
|
|
/* ------------ */
|
|
|
|
N_Total_FloatOps,
|
2006-02-10 15:43:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct optimizer_s
|
|
|
|
{
|
|
|
|
int natives[N_Total_FloatOps];
|
|
|
|
};
|
|
|
|
|
|
|
|
void SetupOptimizer(AMX *amx);
|
2006-03-18 08:56:58 +00:00
|
|
|
extern "C" int amxx_CpuSupport();
|
2006-02-10 15:43:27 +00:00
|
|
|
|
2006-03-17 22:50:13 +00:00
|
|
|
extern int g_opt_level;
|
|
|
|
|
2006-02-10 15:43:27 +00:00
|
|
|
#endif //_INCLUDE_AMXMODX_OPTIMIZER_H
|