macroLimits(3clc)

macroLimits3clc

Macros for math limits.

Overview

The macro names given in the following list must use the values specified. These constant expressions are suitable for use in #if preprocessing directives.

#define FLT_DIG6
#define FLT_MANT_DIG24
#define FLT_MAX_10_EXP+38
#define FLT_MAX_EXP+128
#define FLT_MIN_10_EXP-37
#define FLT_MIN_EXP-125
#define FLT_RADIX2
#define FLT_MAX0x1.fffffep127f
#define FLT_MIN0x1.0p-126f
#define FLT_EPSILON0x1.0p-23f

The macro names given in the following list (available if the double option is supported) must use the values specified. These constant expressions are suitable for use in #if preprocessing directives.

#define DBL_DIG15
#define DBL_MANT_DIG53
#define DBL_MAX_10_EXP+308
#define DBL_MAX_EXP+1024
#define DBL_MIN_10_EXP-307
#define DBL_MIN_EXP-1021
#define DBL_MAX0x1.fffffffffffffp1023
#define DBL_MIN0x1.0p-1022
#define DBL_EPSILON0x1.0p-52

The macro names given in the following list must use the values specified. These constant expressions are suitable for use in #if preprocessing directives. An application that wants to use half and halfn types will need to include the #pragma OPENCL EXTENSION cl_khr_fp16(3clc) : enable directive.

#define HALF_DIG3
#define HALF_MANT_DIG11
#define HALF_MAX_10_EXP+4
#define HALF_MAX_EXP+16
#define HALF_MIN_10_EXP-4
#define HALF_MIN_EXP-13
#define HALF_MAX0x1.ffcp15h
#define HALF_MIN0x1.0p-14h
#define HALF_EPSILON0x1.0p-10h

The macro names given in the following list must use the values specified. These constant expressions are suitable for use in #if preprocessing directives.

#define CHAR_BIT8
#define CHAR_MAXSCHAR_MAX
#define CHAR_MINSCHAR_MIN
#define INT_MAX2147483647
#define INT_MIN(-2147483647- 1)
#define LONG_MAX0x7fffffffffffffffL
#define LONG_MIN(-0x7fffffffffffffffL- 1)
#define SCHAR_MAX127
#define SCHAR_MIN(-127 - 1)
#define SHRT_MAX32767
#define SHRT_MIN(-32767- 1)
#define UCHAR_MAX255
#define USHRT_MAX65535
#define UINT_MAX0xffffffff
#define ULONG_MAX0xffffffffffffffffUL

Specification

OpenCL Specification[1]

Notes

1.

OpenCL Specification

page 252, section 6.12.2.1 - Floating-point macros and pragmas

Releases

5 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8–9
  2. 10
  3. 11
  4. 13

Authors

The Khronos Group

From opencl-1.2-man-doc 1.0~svn33624-5.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.