Skip to content

Commit 947db1d

Browse files
eagleivgq4a
authored andcommitted
xrCore: reformat _std_extensions
1 parent f6c701e commit 947db1d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/xrCore/_std_extensions.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,24 @@ IC bool _valid(const double x)
146146
// XXX: "magic" specializations, that really require profiling to see if they are worth this effort.
147147
// int8
148148
IC s8 _abs(s8 x) { return (x >= 0) ? x : s8(-x); }
149-
IC s8 _min(s8 x, s8 y) { return y + ((x - y) & ((x - y) >> (sizeof(s8) * 8 - 1))); };
150-
IC s8 _max(s8 x, s8 y) { return x - ((x - y) & ((x - y) >> (sizeof(s8) * 8 - 1))); };
149+
IC s8 _min(s8 x, s8 y) { return y + ((x - y) & ((x - y) >> (sizeof(s8) * 8 - 1))); }
150+
IC s8 _max(s8 x, s8 y) { return x - ((x - y) & ((x - y) >> (sizeof(s8) * 8 - 1))); }
151151
// unsigned int8
152152
IC u8 _abs(u8 x) { return x; }
153153
// int16
154154
IC s16 _abs(s16 x) { return (x >= 0) ? x : s16(-x); }
155-
IC s16 _min(s16 x, s16 y) { return y + ((x - y) & ((x - y) >> (sizeof(s16) * 8 - 1))); };
156-
IC s16 _max(s16 x, s16 y) { return x - ((x - y) & ((x - y) >> (sizeof(s16) * 8 - 1))); };
155+
IC s16 _min(s16 x, s16 y) { return y + ((x - y) & ((x - y) >> (sizeof(s16) * 8 - 1))); }
156+
IC s16 _max(s16 x, s16 y) { return x - ((x - y) & ((x - y) >> (sizeof(s16) * 8 - 1))); }
157157
// unsigned int16
158158
IC u16 _abs(u16 x) { return x; }
159159
// int32
160160
IC s32 _abs(s32 x) { return (x >= 0) ? x : s32(-x); }
161-
IC s32 _min(s32 x, s32 y) { return y + ((x - y) & ((x - y) >> (sizeof(s32) * 8 - 1))); };
162-
IC s32 _max(s32 x, s32 y) { return x - ((x - y) & ((x - y) >> (sizeof(s32) * 8 - 1))); };
161+
IC s32 _min(s32 x, s32 y) { return y + ((x - y) & ((x - y) >> (sizeof(s32) * 8 - 1))); }
162+
IC s32 _max(s32 x, s32 y) { return x - ((x - y) & ((x - y) >> (sizeof(s32) * 8 - 1))); }
163163
// int64
164164
IC s64 _abs(s64 x) { return (x >= 0) ? x : s64(-x); }
165-
IC s64 _min(s64 x, s64 y) { return y + ((x - y) & ((x - y) >> (sizeof(s64) * 8 - 1))); };
166-
IC s64 _max(s64 x, s64 y) { return x - ((x - y) & ((x - y) >> (sizeof(s64) * 8 - 1))); };
165+
IC s64 _min(s64 x, s64 y) { return y + ((x - y) & ((x - y) >> (sizeof(s64) * 8 - 1))); }
166+
IC s64 _max(s64 x, s64 y) { return x - ((x - y) & ((x - y) >> (sizeof(s64) * 8 - 1))); }
167167

168168
// string management
169169

0 commit comments

Comments
 (0)