Skip to content

Commit 9fdc037

Browse files
committed
Address comments.
1 parent a8ebbc1 commit 9fdc037

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

libc/include/llvm-libc-macros/stdfix-macros.h

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#define fract _Fract
2222
#define accum _Accum
23+
#define sat _Sat
2324

2425
// Default values: from N1169 standard - Annex A.3 - Typical desktop processor.
2526

@@ -53,11 +54,7 @@
5354
#define USFRACT_FBIT 8
5455
#endif // USFRACT_FBIT
5556

56-
#ifdef __USFRACT_MIN__
57-
#define USFRACT_MIN __USFRACT_MIN__
58-
#else
5957
#define USFRACT_MIN 0.0UHR
60-
#endif // USFRACT_MIN
6158

6259
#ifdef __USFRACT_MAX__
6360
#define USFRACT_MAX __USFRACT_MAX__
@@ -101,11 +98,7 @@
10198
#define UFRACT_FBIT 16
10299
#endif // UFRACT_FBIT
103100

104-
#ifdef __UFRACT_MIN__
105-
#define UFRACT_MIN __UFRACT_MIN__
106-
#else
107101
#define UFRACT_MIN 0.0UR
108-
#endif // UFRACT_MIN
109102

110103
#ifdef __UFRACT_MAX__
111104
#define UFRACT_MAX __UFRACT_MAX__
@@ -149,11 +142,7 @@
149142
#define ULFRACT_FBIT 32
150143
#endif // ULFRACT_FBIT
151144

152-
#ifdef __ULFRACT_MIN__
153-
#define ULFRACT_MIN __ULFRACT_MIN__
154-
#else
155145
#define ULFRACT_MIN 0.0ULR
156-
#endif // ULFRACT_MIN
157146

158147
#ifdef __ULFRACT_MAX__
159148
#define ULFRACT_MAX __ULFRACT_MAX__
@@ -209,11 +198,7 @@
209198
#define USACCUM_IBIT 8
210199
#endif // USACCUM_IBIT
211200

212-
#ifdef __USACCUM_MIN__
213-
#define USACCUM_MIN __USACCUM_MIN__
214-
#else
215201
#define USACCUM_MIN 0.0UHK
216-
#endif // USACCUM_MIN
217202

218203
#ifdef __USACCUM_MAX__
219204
#define USACCUM_MAX __USACCUM_MAX__
@@ -269,11 +254,7 @@
269254
#define UACCUM_IBIT 16
270255
#endif // UACCUM_IBIT
271256

272-
#ifdef __UACCUM_MIN__
273-
#define UACCUM_MIN __UACCUM_MIN__
274-
#else
275257
#define UACCUM_MIN 0.0UK
276-
#endif // UACCUM_MIN
277258

278259
#ifdef __UACCUM_MAX__
279260
#define UACCUM_MAX __UACCUM_MAX__
@@ -329,11 +310,7 @@
329310
#define ULACCUM_IBIT 32
330311
#endif // ULACCUM_IBIT
331312

332-
#ifdef __ULACCUM_MIN__
333-
#define ULACCUM_MIN __ULACCUM_MIN__
334-
#else
335313
#define ULACCUM_MIN 0.0ULK
336-
#endif // ULACCUM_MIN
337314

338315
#ifdef __ULACCUM_MAX__
339316
#define ULACCUM_MAX __ULACCUM_MAX__

0 commit comments

Comments
 (0)