2013-05-24 15:26:52 +00:00
|
|
|
/*
|
2013-06-15 11:37:22 +00:00
|
|
|
* This file is subject to the terms of the GFX License. If a copy of
|
2013-05-24 15:26:52 +00:00
|
|
|
* the license was not distributed with this file, you can obtain one at:
|
|
|
|
*
|
2013-07-21 20:20:37 +00:00
|
|
|
* http://ugfx.org/license.html
|
2013-05-24 15:26:52 +00:00
|
|
|
*/
|
2013-02-11 08:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @file include/gmisc/options.h
|
|
|
|
* @brief GMISC - Miscellaneous Routines options header file.
|
|
|
|
*
|
|
|
|
* @addtogroup GMISC
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _GMISC_OPTIONS_H
|
|
|
|
#define _GMISC_OPTIONS_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name GMISC Functionality to be included
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @brief Include array operation functions
|
|
|
|
* @details Defaults to FALSE
|
|
|
|
*/
|
|
|
|
#ifndef GMISC_NEED_ARRAYOPS
|
|
|
|
#define GMISC_NEED_ARRAYOPS FALSE
|
|
|
|
#endif
|
2013-05-24 15:26:52 +00:00
|
|
|
/**
|
2013-09-24 06:10:15 +00:00
|
|
|
* @brief Include fast fixed point trig functions (sin, cos)
|
2013-05-24 15:26:52 +00:00
|
|
|
* @details Defaults to FALSE
|
|
|
|
*/
|
2013-09-24 06:10:15 +00:00
|
|
|
#ifndef GMISC_NEED_FIXEDTRIG
|
|
|
|
#define GMISC_NEED_FIXEDTRIG FALSE
|
2013-05-24 15:26:52 +00:00
|
|
|
#endif
|
|
|
|
/**
|
2013-09-24 06:10:15 +00:00
|
|
|
* @brief Include fast inverse square root (x^-1/2)
|
2013-05-24 15:26:52 +00:00
|
|
|
* @details Defaults to FALSE
|
|
|
|
*/
|
2013-09-24 06:10:15 +00:00
|
|
|
#ifndef GMISC_NEED_INVSQRT
|
|
|
|
#define GMISC_NEED_INVSQRT FALSE
|
2013-05-24 15:26:52 +00:00
|
|
|
#endif
|
2013-02-11 08:25:45 +00:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*
|
2013-10-24 05:03:47 +00:00
|
|
|
* @name GMISC Optional Parameters
|
2013-02-11 08:25:45 +00:00
|
|
|
* @{
|
|
|
|
*/
|
2013-10-24 05:03:47 +00:00
|
|
|
/**
|
|
|
|
* @brief Modifies the @p invsqrt() function to assume a different integer to floating point endianness.
|
|
|
|
* @note Normally the floating point format and the integer format have
|
|
|
|
* the same endianness. Unfortunately there are some strange
|
|
|
|
* processors that don't eg. some very early ARM devices.
|
|
|
|
* For those where the endianness doesn't match you can fix it by
|
2013-11-09 09:13:01 +00:00
|
|
|
* defining GMISC_INVSQRT_MIXED_ENDIAN.
|
2013-10-24 05:03:47 +00:00
|
|
|
* @note This still assumes the processor is using an ieee floating point format.
|
|
|
|
*
|
|
|
|
* If you have a software floating point that uses a non-standard
|
|
|
|
* floating point format (or very strange hardware) then define
|
2013-11-09 09:13:01 +00:00
|
|
|
* GMISC_INVSQRT_REAL_SLOW and it will do it the hard way.
|
2013-10-24 05:03:47 +00:00
|
|
|
*/
|
2013-11-09 09:13:01 +00:00
|
|
|
#ifndef GMISC_INVSQRT_MIXED_ENDIAN
|
|
|
|
#define GMISC_INVSQRT_MIXED_ENDIAN FALSE
|
2013-10-24 05:03:47 +00:00
|
|
|
#endif
|
|
|
|
/**
|
|
|
|
* @brief Modifies the @p invsqrt() function to do things the long slow way.
|
|
|
|
* @note This causes the @p invsqrt() function to work regardless of the
|
|
|
|
* processor floating point format.
|
|
|
|
* @note This makes the @p invsqrt() function very slow.
|
|
|
|
*/
|
2013-11-09 09:13:01 +00:00
|
|
|
#ifndef GMISC_INVSQRT_REAL_SLOW
|
|
|
|
#define GMISC_INVSQRT_REAL_SLOW FALSE
|
2013-10-24 05:03:47 +00:00
|
|
|
#endif
|
2013-02-11 08:25:45 +00:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#endif /* _GMISC_OPTIONS_H */
|
|
|
|
/** @} */
|