janwas
a34b759720
. timer, config: fix definition of ALLOW_RDTSC . add movsx_be64 (for whirlpool), revise implementation, move to byte_order, add test . MAX -> std::max, remove those macros . add timestamp to system_info as requested by philip This was SVN commit r5050.
19 lines
451 B
C
19 lines
451 B
C
//***********************************************************
|
|
//
|
|
// Name: MathUtil.H
|
|
// Description: This file contains some maths related
|
|
// utility macros and fucntions.
|
|
//
|
|
//***********************************************************
|
|
|
|
#ifndef MATHUTIL_H
|
|
#define MATHUTIL_H
|
|
|
|
#define PI 3.14159265358979323846f
|
|
|
|
#define DEGTORAD(a) ((a) * (PI/180.0f))
|
|
#define RADTODEG(a) ((a) * (180.0f/PI))
|
|
#define SQR(x) ((x) * (x))
|
|
|
|
#endif
|