Skip to content

Commit

Permalink
C'mon Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Nov 29, 2024
1 parent 9f7e634 commit 3bd1757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Quake/mathlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ static inline int IS_NAN (float x)
return ((num.i & nanmask) == nanmask);
}
#endif

// clang-format off
#define Q_rint(x) ((x) > 0 ? (int)((x) + 0.5) : (int)((x) - 0.5)) // johnfitz -- from joequake
// clang-format on

#define DotProduct(x, y) ((x)[0] * (y)[0] + (x)[1] * (y)[1] + (x)[2] * (y)[2])
#define DotProduct2(x, y) ((x)[0] * (y)[0] + (x)[1] * (y)[1])
Expand Down

0 comments on commit 3bd1757

Please sign in to comment.