sm64pc/src/goddard/gd_macros.h

18 lines
421 B
C
Raw Permalink Normal View History

2020-06-02 18:44:34 +02:00
#ifndef GD_MACROS_H
#define GD_MACROS_H
2019-08-25 06:46:40 +02:00
/**
* @file gd_macros.h
*
* Common macros that Goddard used throughout the Mario Head subsytem code.
*/
#define DEG_PER_RAD 57.29577950560105
#define RAD_PER_DEG (1.0 / DEG_PER_RAD)
#define ABS(val) (((val) < 0 ? (-(val)) : (val)))
#define SQ(val) ((val) * (val))
#define ALIGN(VAL_, ALIGNMENT_) (((VAL_) + ((ALIGNMENT_) - 1)) & ~((ALIGNMENT_) - 1))
2020-06-02 18:44:34 +02:00
#endif // GD_MACROS_H