c0fe16c531354f82a521226a134d93becff33c15
[platform/upstream/glib2.0.git] / docs / reference / glib / tmpl / limits.sgml
1 <!-- ##### SECTION Title ##### -->
2 Limits of Basic Types
3
4 <!-- ##### SECTION Short_Description ##### -->
5 portable method of determining the limits of the standard types
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
9 These macros provide a portable method to determine the limits of some of
10 the standard integer and floating point types.
11 </para>
12
13 <!-- ##### SECTION See_Also ##### -->
14 <para>
15
16 </para>
17
18 <!-- ##### SECTION Stability_Level ##### -->
19
20
21 <!-- ##### MACRO G_MININT ##### -->
22 <para>
23 The minimum value which can be held in a #gint.
24 </para>
25
26
27
28 <!-- ##### MACRO G_MAXINT ##### -->
29 <para>
30 The maximum value which can be held in a #gint.
31 </para>
32
33
34
35 <!-- ##### MACRO G_MAXUINT ##### -->
36 <para>
37 The maximum value which can be held in a #guint.
38 </para>
39
40
41
42 <!-- ##### MACRO G_MINSHORT ##### -->
43 <para>
44 The minimum value which can be held in a #gshort.
45 </para>
46
47
48
49 <!-- ##### MACRO G_MAXSHORT ##### -->
50 <para>
51 The maximum value which can be held in a #gshort.
52 </para>
53
54
55
56 <!-- ##### MACRO G_MAXUSHORT ##### -->
57 <para>
58 The maximum value which can be held in a #gushort.
59 </para>
60
61
62
63 <!-- ##### MACRO G_MINLONG ##### -->
64 <para>
65 The minimum value which can be held in a #glong.
66 </para>
67
68
69
70 <!-- ##### MACRO G_MAXLONG ##### -->
71 <para>
72 The maximum value which can be held in a #glong.
73 </para>
74
75
76
77 <!-- ##### MACRO G_MAXULONG ##### -->
78 <para>
79 The maximum value which can be held in a #gulong.
80 </para>
81
82
83
84 <!-- ##### MACRO G_MININT8 ##### -->
85 <para>
86 The minimum value which can be held in a #gint8.
87 </para>
88
89 @Since: 2.4
90
91
92 <!-- ##### MACRO G_MAXINT8 ##### -->
93 <para>
94 The maximum value which can be held in a #gint8.
95 </para>
96
97 @Since: 2.4
98
99
100 <!-- ##### MACRO G_MAXUINT8 ##### -->
101 <para>
102 The maximum value which can be held in a #guint8.
103 </para>
104
105 @Since: 2.4
106
107
108 <!-- ##### MACRO G_MININT16 ##### -->
109 <para>
110 The minimum value which can be held in a #gint16.
111 </para>
112
113 @Since: 2.4
114
115
116 <!-- ##### MACRO G_MAXINT16 ##### -->
117 <para>
118 The maximum value which can be held in a #gint16.
119 </para>
120
121 @Since: 2.4
122
123
124 <!-- ##### MACRO G_MAXUINT16 ##### -->
125 <para>
126 The maximum value which can be held in a #guint16.
127 </para>
128
129 @Since: 2.4
130
131
132 <!-- ##### MACRO G_MININT32 ##### -->
133 <para>
134 The minimum value which can be held in a #gint32.
135 </para>
136
137 @Since: 2.4
138
139
140 <!-- ##### MACRO G_MAXINT32 ##### -->
141 <para>
142 The maximum value which can be held in a #gint32.
143 </para>
144
145 @Since: 2.4
146
147
148 <!-- ##### MACRO G_MAXUINT32 ##### -->
149 <para>
150 The maximum value which can be held in a #guint32.
151 </para>
152
153 @Since: 2.4
154
155
156 <!-- ##### MACRO G_MININT64 ##### -->
157 <para>
158 The minimum value which can be held in a #gint64.
159 </para>
160
161
162
163 <!-- ##### MACRO G_MAXINT64 ##### -->
164 <para>
165 The maximum value which can be held in a #gint64.
166 </para>
167
168
169
170 <!-- ##### MACRO G_MAXUINT64 ##### -->
171 <para>
172 The maximum value which can be held in a #guint64.
173 </para>
174
175
176
177 <!-- ##### MACRO G_MAXSIZE ##### -->
178 <para>
179 The maximum value which can be held in a #gsize.
180 </para>
181
182 @Since: 2.4
183
184
185 <!-- ##### MACRO G_MINSSIZE ##### -->
186 <para>
187 The minimum value which can be held in a #gssize.
188 </para>
189
190 @Since: 2.14
191
192
193 <!-- ##### MACRO G_MAXSSIZE ##### -->
194 <para>
195 The maximum value which can be held in a #gssize.
196 </para>
197
198 @Since: 2.14
199
200
201 <!-- ##### MACRO G_MINOFFSET ##### -->
202 <para>
203 The minimum value which can be held in a #goffset.
204 </para>
205
206
207
208 <!-- ##### MACRO G_MAXOFFSET ##### -->
209 <para>
210 The maximum value which can be held in a #goffset.
211 </para>
212
213
214
215 <!-- ##### MACRO G_MINFLOAT ##### -->
216 <para>
217 The minimum positive value which can be held in a #gfloat.
218 </para>
219 <para>
220 If you are interested in the smallest value which can be held in a #gfloat,
221 use -G_MAX_FLOAT.
222 </para>
223
224
225
226 <!-- ##### MACRO G_MAXFLOAT ##### -->
227 <para>
228 The maximum value which can be held in a #gfloat.
229 </para>
230
231
232
233 <!-- ##### MACRO G_MINDOUBLE ##### -->
234 <para>
235 The minimum positive value which can be held in a #gdouble.
236 </para>
237 <para>
238 If you are interested in the smallest value which can be held in a #gdouble,
239 use -G_MAXDOUBLE.
240 </para>
241
242
243
244 <!-- ##### MACRO G_MAXDOUBLE ##### -->
245 <para>
246 The maximum value which can be held in a #gdouble.
247 </para>
248
249
250