Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros
gd_macros.h File Reference

Common macros that Goddard used throughout the Mario Head subsytem code. More...

Go to the source code of this file.

Macros

#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))
 

Detailed Description

Common macros that Goddard used throughout the Mario Head subsytem code.

Macro Definition Documentation

◆ ABS

#define ABS (   val)    (((val) < 0 ? (-(val)) : (val)))

◆ ALIGN

#define ALIGN (   VAL_,
  ALIGNMENT_ 
)    (((VAL_) + ((ALIGNMENT_) - 1)) & ~((ALIGNMENT_) - 1))

◆ DEG_PER_RAD

#define DEG_PER_RAD   57.29577950560105

◆ RAD_PER_DEG

#define RAD_PER_DEG   (1.0 / DEG_PER_RAD)

◆ SQ

#define SQ (   val)    ((val) * (val))