intprops-internal.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. /* intprops-internal.h -- properties of integer types not visible to users
  2. Copyright (C) 2001-2023 Free Software Foundation, Inc.
  3. This program is free software: you can redistribute it and/or modify it
  4. under the terms of the GNU Lesser General Public License as published
  5. by the Free Software Foundation; either version 2.1 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program. If not, see <https://www.gnu.org/licenses/>. */
  13. #ifndef _GL_INTPROPS_INTERNAL_H
  14. #define _GL_INTPROPS_INTERNAL_H
  15. #include <limits.h>
  16. /* Return a value with the common real type of E and V and the value of V.
  17. Do not evaluate E. */
  18. #define _GL_INT_CONVERT(e, v) ((1 ? 0 : (e)) + (v))
  19. /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see
  20. <https://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>. */
  21. #define _GL_INT_NEGATE_CONVERT(e, v) ((1 ? 0 : (e)) - (v))
  22. /* The extra casts in the following macros work around compiler bugs,
  23. e.g., in Cray C 5.0.3.0. */
  24. /* True if the real type T is signed. */
  25. #define _GL_TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
  26. /* Return 1 if the real expression E, after promotion, has a
  27. signed or floating type. Do not evaluate E. */
  28. #define _GL_EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0)
  29. /* Minimum and maximum values for integer types and expressions. */
  30. /* The width in bits of the integer type or expression T.
  31. Do not evaluate T. T must not be a bit-field expression.
  32. Padding bits are not supported; this is checked at compile-time below. */
  33. #define _GL_TYPE_WIDTH(t) (sizeof (t) * CHAR_BIT)
  34. /* The maximum and minimum values for the type of the expression E,
  35. after integer promotion. E is not evaluated. */
  36. #define _GL_INT_MINIMUM(e) \
  37. (_GL_EXPR_SIGNED (e) \
  38. ? ~ _GL_SIGNED_INT_MAXIMUM (e) \
  39. : _GL_INT_CONVERT (e, 0))
  40. #define _GL_INT_MAXIMUM(e) \
  41. (_GL_EXPR_SIGNED (e) \
  42. ? _GL_SIGNED_INT_MAXIMUM (e) \
  43. : _GL_INT_NEGATE_CONVERT (e, 1))
  44. #define _GL_SIGNED_INT_MAXIMUM(e) \
  45. (((_GL_INT_CONVERT (e, 1) << (_GL_TYPE_WIDTH (+ (e)) - 2)) - 1) * 2 + 1)
  46. /* Work around OpenVMS incompatibility with C99. */
  47. #if !defined LLONG_MAX && defined __INT64_MAX
  48. # define LLONG_MAX __INT64_MAX
  49. # define LLONG_MIN __INT64_MIN
  50. #endif
  51. /* This include file assumes that signed types are two's complement without
  52. padding bits; the above macros have undefined behavior otherwise.
  53. If this is a problem for you, please let us know how to fix it for your host.
  54. This assumption is tested by the intprops-tests module. */
  55. /* Does the __typeof__ keyword work? This could be done by
  56. 'configure', but for now it's easier to do it by hand. */
  57. #if (2 <= __GNUC__ \
  58. || (4 <= __clang_major__) \
  59. || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \
  60. || (0x5110 <= __SUNPRO_C && !__STDC__))
  61. # define _GL_HAVE___TYPEOF__ 1
  62. #else
  63. # define _GL_HAVE___TYPEOF__ 0
  64. #endif
  65. /* Return 1 if the integer type or expression T might be signed. Return 0
  66. if it is definitely unsigned. T must not be a bit-field expression.
  67. This macro does not evaluate its argument, and expands to an
  68. integer constant expression. */
  69. #if _GL_HAVE___TYPEOF__
  70. # define _GL_SIGNED_TYPE_OR_EXPR(t) _GL_TYPE_SIGNED (__typeof__ (t))
  71. #else
  72. # define _GL_SIGNED_TYPE_OR_EXPR(t) 1
  73. #endif
  74. /* Return 1 if - A would overflow in [MIN,MAX] arithmetic.
  75. A should not have side effects, and A's type should be an
  76. integer with minimum value MIN and maximum MAX. */
  77. #define _GL_INT_NEGATE_RANGE_OVERFLOW(a, min, max) \
  78. ((min) < 0 ? (a) < - (max) : 0 < (a))
  79. /* True if __builtin_add_overflow (A, B, P) and __builtin_sub_overflow
  80. (A, B, P) work when P is non-null. */
  81. #ifdef __EDG__
  82. /* EDG-based compilers like nvc 22.1 cannot add 64-bit signed to unsigned
  83. <https://bugs.gnu.org/53256>. */
  84. # define _GL_HAS_BUILTIN_ADD_OVERFLOW 0
  85. #elif defined __has_builtin
  86. # define _GL_HAS_BUILTIN_ADD_OVERFLOW __has_builtin (__builtin_add_overflow)
  87. /* __builtin_{add,sub}_overflow exists but is not reliable in GCC 5.x and 6.x,
  88. see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98269>. */
  89. #elif 7 <= __GNUC__
  90. # define _GL_HAS_BUILTIN_ADD_OVERFLOW 1
  91. #else
  92. # define _GL_HAS_BUILTIN_ADD_OVERFLOW 0
  93. #endif
  94. /* True if __builtin_mul_overflow (A, B, P) works when P is non-null. */
  95. #if defined __clang_major__ && __clang_major__ < 14
  96. /* Work around Clang bug <https://bugs.llvm.org/show_bug.cgi?id=16404>. */
  97. # define _GL_HAS_BUILTIN_MUL_OVERFLOW 0
  98. #else
  99. # define _GL_HAS_BUILTIN_MUL_OVERFLOW _GL_HAS_BUILTIN_ADD_OVERFLOW
  100. #endif
  101. /* True if __builtin_add_overflow_p (A, B, C) works, and similarly for
  102. __builtin_sub_overflow_p and __builtin_mul_overflow_p. */
  103. #ifdef __EDG__
  104. /* In EDG-based compilers like ICC 2021.3 and earlier,
  105. __builtin_add_overflow_p etc. are not treated as integral constant
  106. expressions even when all arguments are. */
  107. # define _GL_HAS_BUILTIN_OVERFLOW_P 0
  108. #elif defined __has_builtin
  109. # define _GL_HAS_BUILTIN_OVERFLOW_P __has_builtin (__builtin_mul_overflow_p)
  110. #else
  111. # define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__)
  112. #endif
  113. #if (!defined _GL_STDCKDINT_H && 202311 <= __STDC_VERSION__ \
  114. && ! (_GL_HAS_BUILTIN_ADD_OVERFLOW && _GL_HAS_BUILTIN_MUL_OVERFLOW))
  115. # include <stdckdint.h>
  116. #endif
  117. /* Store the low-order bits of A + B, A - B, A * B, respectively, into *R.
  118. Return 1 if the result overflows. Arguments should not have side
  119. effects and A, B and *R can be of any integer type other than char,
  120. bool, a bit-precise integer type, or an enumeration type. */
  121. #if _GL_HAS_BUILTIN_ADD_OVERFLOW
  122. # define _GL_INT_ADD_WRAPV(a, b, r) __builtin_add_overflow (a, b, r)
  123. # define _GL_INT_SUBTRACT_WRAPV(a, b, r) __builtin_sub_overflow (a, b, r)
  124. #elif defined ckd_add && defined ckd_sub && !defined _GL_STDCKDINT_H
  125. # define _GL_INT_ADD_WRAPV(a, b, r) ckd_add (r, + (a), + (b))
  126. # define _GL_INT_SUBTRACT_WRAPV(a, b, r) ckd_sub (r, + (a), + (b))
  127. #else
  128. # define _GL_INT_ADD_WRAPV(a, b, r) \
  129. _GL_INT_OP_WRAPV (a, b, r, +, _GL_INT_ADD_RANGE_OVERFLOW)
  130. # define _GL_INT_SUBTRACT_WRAPV(a, b, r) \
  131. _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
  132. #endif
  133. #if _GL_HAS_BUILTIN_MUL_OVERFLOW
  134. # if ((9 < __GNUC__ + (3 <= __GNUC_MINOR__) \
  135. || (__GNUC__ == 8 && 4 <= __GNUC_MINOR__)) \
  136. && !defined __EDG__)
  137. # define _GL_INT_MULTIPLY_WRAPV(a, b, r) __builtin_mul_overflow (a, b, r)
  138. # else
  139. /* Work around GCC bug 91450. */
  140. # define _GL_INT_MULTIPLY_WRAPV(a, b, r) \
  141. ((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && _GL_EXPR_SIGNED (a) && _GL_EXPR_SIGNED (b) \
  142. && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, 0, (__typeof__ (*(r))) -1)) \
  143. ? ((void) __builtin_mul_overflow (a, b, r), 1) \
  144. : __builtin_mul_overflow (a, b, r))
  145. # endif
  146. #elif defined ckd_mul && !defined _GL_STDCKDINT_H
  147. # define _GL_INT_MULTIPLY_WRAPV(a, b, r) ckd_mul (r, + (a), + (b))
  148. #else
  149. # define _GL_INT_MULTIPLY_WRAPV(a, b, r) \
  150. _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW)
  151. #endif
  152. /* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See:
  153. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193
  154. https://llvm.org/bugs/show_bug.cgi?id=25390
  155. For now, assume all versions of GCC-like compilers generate bogus
  156. warnings for _Generic. This matters only for compilers that
  157. lack relevant builtins. */
  158. #if __GNUC__ || defined __clang__
  159. # define _GL__GENERIC_BOGUS 1
  160. #else
  161. # define _GL__GENERIC_BOGUS 0
  162. #endif
  163. /* Store the low-order bits of A <op> B into *R, where OP specifies
  164. the operation and OVERFLOW the overflow predicate. Return 1 if the
  165. result overflows. Arguments should not have side effects,
  166. and A, B and *R can be of any integer type other than char, bool, a
  167. bit-precise integer type, or an enumeration type. */
  168. #if 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS
  169. # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \
  170. (_Generic \
  171. (*(r), \
  172. signed char: \
  173. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  174. signed char, SCHAR_MIN, SCHAR_MAX), \
  175. unsigned char: \
  176. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  177. unsigned char, 0, UCHAR_MAX), \
  178. short int: \
  179. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  180. short int, SHRT_MIN, SHRT_MAX), \
  181. unsigned short int: \
  182. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  183. unsigned short int, 0, USHRT_MAX), \
  184. int: \
  185. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  186. int, INT_MIN, INT_MAX), \
  187. unsigned int: \
  188. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  189. unsigned int, 0, UINT_MAX), \
  190. long int: \
  191. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
  192. long int, LONG_MIN, LONG_MAX), \
  193. unsigned long int: \
  194. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
  195. unsigned long int, 0, ULONG_MAX), \
  196. long long int: \
  197. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
  198. long long int, LLONG_MIN, LLONG_MAX), \
  199. unsigned long long int: \
  200. _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
  201. unsigned long long int, 0, ULLONG_MAX)))
  202. #else
  203. /* Store the low-order bits of A <op> B into *R, where OP specifies
  204. the operation and OVERFLOW the overflow predicate. If *R is
  205. signed, its type is ST with bounds SMIN..SMAX; otherwise its type
  206. is UT with bounds U..UMAX. ST and UT are narrower than int.
  207. Return 1 if the result overflows. Arguments should not have side
  208. effects, and A, B and *R can be of any integer type other than
  209. char, bool, a bit-precise integer type, or an enumeration type. */
  210. # if _GL_HAVE___TYPEOF__
  211. # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \
  212. (_GL_TYPE_SIGNED (__typeof__ (*(r))) \
  213. ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, st, smin, smax) \
  214. : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, ut, 0, umax))
  215. # else
  216. # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \
  217. (overflow (a, b, smin, smax) \
  218. ? (overflow (a, b, 0, umax) \
  219. ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 1) \
  220. : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) < 0) \
  221. : (overflow (a, b, 0, umax) \
  222. ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) >= 0 \
  223. : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 0)))
  224. # endif
  225. # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \
  226. (sizeof *(r) == sizeof (signed char) \
  227. ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \
  228. signed char, SCHAR_MIN, SCHAR_MAX, \
  229. unsigned char, UCHAR_MAX) \
  230. : sizeof *(r) == sizeof (short int) \
  231. ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \
  232. short int, SHRT_MIN, SHRT_MAX, \
  233. unsigned short int, USHRT_MAX) \
  234. : sizeof *(r) == sizeof (int) \
  235. ? (_GL_EXPR_SIGNED (*(r)) \
  236. ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  237. int, INT_MIN, INT_MAX) \
  238. : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
  239. unsigned int, 0, UINT_MAX)) \
  240. : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow))
  241. # ifdef LLONG_MAX
  242. # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \
  243. (sizeof *(r) == sizeof (long int) \
  244. ? (_GL_EXPR_SIGNED (*(r)) \
  245. ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
  246. long int, LONG_MIN, LONG_MAX) \
  247. : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
  248. unsigned long int, 0, ULONG_MAX)) \
  249. : (_GL_EXPR_SIGNED (*(r)) \
  250. ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
  251. long long int, LLONG_MIN, LLONG_MAX) \
  252. : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
  253. unsigned long long int, 0, ULLONG_MAX)))
  254. # else
  255. # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \
  256. (_GL_EXPR_SIGNED (*(r)) \
  257. ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
  258. long int, LONG_MIN, LONG_MAX) \
  259. : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
  260. unsigned long int, 0, ULONG_MAX))
  261. # endif
  262. #endif
  263. /* Store the low-order bits of A <op> B into *R, where the operation
  264. is given by OP. Use the unsigned type UT for calculation to avoid
  265. overflow problems. *R's type is T, with extrema TMIN and TMAX.
  266. T can be any signed integer type other than char, bool, a
  267. bit-precise integer type, or an enumeration type.
  268. Return 1 if the result overflows. */
  269. #define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \
  270. (overflow (a, b, tmin, tmax) \
  271. ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 1) \
  272. : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 0))
  273. /* Return 1 if the integer expressions A - B and -A would overflow,
  274. respectively. Arguments should not have side effects,
  275. and can be any signed integer type other than char, bool, a
  276. bit-precise integer type, or an enumeration type.
  277. These macros are tuned for their last input argument being a constant. */
  278. #if _GL_HAS_BUILTIN_OVERFLOW_P
  279. # define _GL_INT_NEGATE_OVERFLOW(a) \
  280. __builtin_sub_overflow_p (0, a, (__typeof__ (- (a))) 0)
  281. #else
  282. # define _GL_INT_NEGATE_OVERFLOW(a) \
  283. _GL_INT_NEGATE_RANGE_OVERFLOW (a, _GL_INT_MINIMUM (a), _GL_INT_MAXIMUM (a))
  284. #endif
  285. /* Return the low-order bits of A <op> B, where the operation is given
  286. by OP. Use the unsigned type UT for calculation to avoid undefined
  287. behavior on signed integer overflow, and convert the result to type T.
  288. UT is at least as wide as T and is no narrower than unsigned int,
  289. T is two's complement, and there is no padding or trap representations.
  290. Assume that converting UT to T yields the low-order bits, as is
  291. done in all known two's-complement C compilers. E.g., see:
  292. https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html
  293. According to the C standard, converting UT to T yields an
  294. implementation-defined result or signal for values outside T's
  295. range. However, code that works around this theoretical problem
  296. runs afoul of a compiler bug in Oracle Studio 12.3 x86. See:
  297. https://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
  298. As the compiler bug is real, don't try to work around the
  299. theoretical problem. */
  300. #define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, ut, t) \
  301. ((t) ((ut) (a) op (ut) (b)))
  302. /* Return true if the numeric values A + B, A - B, A * B fall outside
  303. the range TMIN..TMAX. Arguments should not have side effects
  304. and can be any integer type other than char, bool,
  305. a bit-precise integer type, or an enumeration type.
  306. TMIN should be signed and nonpositive.
  307. TMAX should be positive, and should be signed unless TMIN is zero. */
  308. #define _GL_INT_ADD_RANGE_OVERFLOW(a, b, tmin, tmax) \
  309. ((b) < 0 \
  310. ? (((tmin) \
  311. ? ((_GL_EXPR_SIGNED (_GL_INT_CONVERT (a, (tmin) - (b))) || (b) < (tmin)) \
  312. && (a) < (tmin) - (b)) \
  313. : (a) <= -1 - (b)) \
  314. || ((_GL_EXPR_SIGNED (a) ? 0 <= (a) : (tmax) < (a)) && (tmax) < (a) + (b))) \
  315. : (a) < 0 \
  316. ? (((tmin) \
  317. ? ((_GL_EXPR_SIGNED (_GL_INT_CONVERT (b, (tmin) - (a))) || (a) < (tmin)) \
  318. && (b) < (tmin) - (a)) \
  319. : (b) <= -1 - (a)) \
  320. || ((_GL_EXPR_SIGNED (_GL_INT_CONVERT (a, b)) || (tmax) < (b)) \
  321. && (tmax) < (a) + (b))) \
  322. : (tmax) < (b) || (tmax) - (b) < (a))
  323. #define _GL_INT_SUBTRACT_RANGE_OVERFLOW(a, b, tmin, tmax) \
  324. (((a) < 0) == ((b) < 0) \
  325. ? ((a) < (b) \
  326. ? !(tmin) || -1 - (tmin) < (b) - (a) - 1 \
  327. : (tmax) < (a) - (b)) \
  328. : (a) < 0 \
  329. ? ((!_GL_EXPR_SIGNED (_GL_INT_CONVERT ((a) - (tmin), b)) && (a) - (tmin) < 0) \
  330. || (a) - (tmin) < (b)) \
  331. : ((! (_GL_EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \
  332. && _GL_EXPR_SIGNED (_GL_INT_CONVERT ((tmax) + (b), a))) \
  333. && (tmax) <= -1 - (b)) \
  334. || (tmax) + (b) < (a)))
  335. #define _GL_INT_MULTIPLY_RANGE_OVERFLOW(a, b, tmin, tmax) \
  336. ((b) < 0 \
  337. ? ((a) < 0 \
  338. ? (_GL_EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \
  339. ? (a) < (tmax) / (b) \
  340. : ((_GL_INT_NEGATE_OVERFLOW (b) \
  341. ? _GL_INT_CONVERT (b, tmax) >> (_GL_TYPE_WIDTH (+ (b)) - 1) \
  342. : (tmax) / -(b)) \
  343. <= -1 - (a))) \
  344. : _GL_INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (b, tmin)) && (b) == -1 \
  345. ? (_GL_EXPR_SIGNED (a) \
  346. ? 0 < (a) + (tmin) \
  347. : 0 < (a) && -1 - (tmin) < (a) - 1) \
  348. : (tmin) / (b) < (a)) \
  349. : (b) == 0 \
  350. ? 0 \
  351. : ((a) < 0 \
  352. ? (_GL_INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (a, tmin)) && (a) == -1 \
  353. ? (_GL_EXPR_SIGNED (b) ? 0 < (b) + (tmin) : -1 - (tmin) < (b) - 1) \
  354. : (tmin) / (a) < (b)) \
  355. : (tmax) / (b) < (a)))
  356. #endif /* _GL_INTPROPS_INTERNAL_H */