Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1132)

Side by Side Diff: fusl/include/values.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/utmpx.h ('k') | fusl/include/wait.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _VALUES_H
2 #define _VALUES_H
3
4 #include <limits.h>
5
6 #define CHARBITS (sizeof(char) * 8)
7 #define SHORTBITS (sizeof(short) * 8)
8 #define INTBITS (sizeof(int) * 8)
9 #define LONGBITS (sizeof(long) * 8)
10 #define PTRBITS (sizeof(char *) * 8)
11 #define DOUBLEBITS (sizeof(double) * 8)
12 #define FLOATBITS (sizeof(float) * 8)
13
14 #define MINSHORT SHRT_MIN
15 #define MININT INT_MIN
16 #define MINLONG LONG_MIN
17
18 #define MAXSHORT SHRT_MAX
19 #define MAXINT INT_MAX
20 #define MAXLONG LONG_MAX
21
22 #define HIBITS MINSHORT
23 #define HIBITL MINLONG
24
25 #include <float.h>
26
27 #define MAXDOUBLE DBL_MAX
28 #undef MAXFLOAT
29 #define MAXFLOAT FLT_MAX
30 #define MINDOUBLE DBL_MIN
31 #define MINFLOAT FLT_MIN
32 #define DMINEXP DBL_MIN_EXP
33 #define FMINEXP FLT_MIN_EXP
34 #define DMAXEXP DBL_MAX_EXP
35 #define FMAXEXP FLT_MAX_EXP
36
37 #define BITSPERBYTE CHAR_BIT
38
39 #endif
OLDNEW
« no previous file with comments | « fusl/include/utmpx.h ('k') | fusl/include/wait.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698