ReactOS  0.4.14-dev-317-g96040ec
intcvt.h File Reference
#include <schily/mconfig.h>
#include <schily/utypes.h>
Include dependency graph for intcvt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define i_to_2_byte(a, i)
 
#define i_to_3_byte(a, i)
 
#define i_to_4_byte(a, i)
 
#define a_to_byte(a)   (((Int8_t *)a)[0])
 
#define a_to_u_byte(a)
 
#define a_to_u_2_byte(a)
 
#define a_to_2_byte(a)   (int)(Int16_t)a_to_u_2_byte(a)
 
#define a_to_u_3_byte(a)
 
#define a_to_3_byte(a)   a_to_u_3_byte(a) /* XXX signed version? */
 
#define __TOP_4BYTE   0xFF000000
 
#define a_to_u_4_byte(a)
 
#define a_to_4_byte(a)   (long)(Int32_t)a_to_u_4_byte(a)
 
#define li_to_2_byte(a, i)
 
#define li_to_3_byte(a, i)
 
#define li_to_4_byte(a, i)
 
#define la_to_u_2_byte(a)
 
#define la_to_2_byte(a)   (int)(Int16_t)la_to_u_2_byte(a)
 
#define la_to_u_3_byte(a)
 
#define la_to_3_byte(a)   la_to_u_3_byte(a) /* XXX signed version? */
 
#define la_to_u_4_byte(a)
 
#define la_to_4_byte(a)   (long)(Int32_t)la_to_u_4_byte(a)
 

Macro Definition Documentation

◆ __TOP_4BYTE

#define __TOP_4BYTE   0xFF000000

Definition at line 66 of file intcvt.h.

◆ a_to_2_byte

#define a_to_2_byte (   a)    (int)(Int16_t)a_to_u_2_byte(a)

Definition at line 54 of file intcvt.h.

◆ a_to_3_byte

#define a_to_3_byte (   a)    a_to_u_3_byte(a) /* XXX signed version? */

Definition at line 61 of file intcvt.h.

◆ a_to_4_byte

#define a_to_4_byte (   a)    (long)(Int32_t)a_to_u_4_byte(a)

Definition at line 75 of file intcvt.h.

◆ a_to_byte

#define a_to_byte (   a)    (((Int8_t *)a)[0])

Definition at line 45 of file intcvt.h.

◆ a_to_u_2_byte

#define a_to_u_2_byte (   a)
Value:
((UInt16_t) \
((((Uchar *)a)[1] & 0xFF) | \
(((Uchar *)a)[0] << 8 & 0xFF00)))
unsigned char Uchar
Definition: utypes.h:45
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 50 of file intcvt.h.

◆ a_to_u_3_byte

#define a_to_u_3_byte (   a)
Value:
((Ulong) \
((((Uchar *)a)[2] & 0xFF) | \
(((Uchar *)a)[1] << 8 & 0xFF00) | \
(((Uchar *)a)[0] << 16 & 0xFF0000)))
unsigned char Uchar
Definition: utypes.h:45
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long Ulong
Definition: utypes.h:42

Definition at line 56 of file intcvt.h.

◆ a_to_u_4_byte

#define a_to_u_4_byte (   a)
Value:
((Ulong) \
((((Uchar*)a)[3] & 0xFF) | \
(((Uchar*)a)[2] << 8 & 0xFF00) | \
(((Uchar*)a)[1] << 16 & 0xFF0000) | \
(((Uchar*)a)[0] << 24 & __TOP_4BYTE)))
unsigned char Uchar
Definition: utypes.h:45
#define __TOP_4BYTE
Definition: intcvt.h:66
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long Ulong
Definition: utypes.h:42

Definition at line 69 of file intcvt.h.

◆ a_to_u_byte

#define a_to_u_byte (   a)
Value:
((UInt8_t) \
(((Uchar *)a)[0] & 0xFF))
unsigned char Uchar
Definition: utypes.h:45
unsigned char UInt8_t
Definition: stdint.h:322
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 47 of file intcvt.h.

◆ i_to_2_byte

#define i_to_2_byte (   a,
  i 
)
Value:
(((Uchar *)(a))[0] = ((i) >> 8) & 0xFF,\
((Uchar *)(a))[1] = (i) & 0xFF)
unsigned char Uchar
Definition: utypes.h:45
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 31 of file intcvt.h.

◆ i_to_3_byte

#define i_to_3_byte (   a,
  i 
)
Value:
(((Uchar *)(a))[0] = ((i) >> 16)& 0xFF,\
((Uchar *)(a))[1] = ((i) >> 8) & 0xFF,\
((Uchar *)(a))[2] = (i) & 0xFF)
unsigned char Uchar
Definition: utypes.h:45
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 34 of file intcvt.h.

◆ i_to_4_byte

#define i_to_4_byte (   a,
  i 
)
Value:
(((Uchar *)(a))[0] = ((i) >> 24)& 0xFF,\
((Uchar *)(a))[1] = ((i) >> 16)& 0xFF,\
((Uchar *)(a))[2] = ((i) >> 8) & 0xFF,\
((Uchar *)(a))[3] = (i) & 0xFF)
unsigned char Uchar
Definition: utypes.h:45
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 38 of file intcvt.h.

◆ la_to_2_byte

#define la_to_2_byte (   a)    (int)(Int16_t)la_to_u_2_byte(a)

Definition at line 97 of file intcvt.h.

◆ la_to_3_byte

#define la_to_3_byte (   a)    la_to_u_3_byte(a) /* XXX signed version? */

Definition at line 104 of file intcvt.h.

◆ la_to_4_byte

#define la_to_4_byte (   a)    (long)(Int32_t)la_to_u_4_byte(a)

Definition at line 112 of file intcvt.h.

◆ la_to_u_2_byte

#define la_to_u_2_byte (   a)
Value:
((UInt16_t) \
((((Uchar*)a)[0] & 0xFF) | \
(((Uchar*)a)[1] << 8 & 0xFF00)))
unsigned char Uchar
Definition: utypes.h:45
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 93 of file intcvt.h.

◆ la_to_u_3_byte

#define la_to_u_3_byte (   a)
Value:
((Ulong) \
((((Uchar*)a)[0] & 0xFF) | \
(((Uchar*)a)[1] << 8 & 0xFF00) | \
(((Uchar*)a)[2] << 16 & 0xFF0000)))
unsigned char Uchar
Definition: utypes.h:45
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long Ulong
Definition: utypes.h:42

Definition at line 99 of file intcvt.h.

◆ la_to_u_4_byte

#define la_to_u_4_byte (   a)
Value:
((Ulong) \
((((Uchar*)a)[0] & 0xFF) | \
(((Uchar*)a)[1] << 8 & 0xFF00) | \
(((Uchar*)a)[2] << 16 & 0xFF0000) | \
(((Uchar*)a)[3] << 24 & __TOP_4BYTE)))
unsigned char Uchar
Definition: utypes.h:45
#define __TOP_4BYTE
Definition: intcvt.h:66
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
unsigned long Ulong
Definition: utypes.h:42

Definition at line 106 of file intcvt.h.

◆ li_to_2_byte

#define li_to_2_byte (   a,
  i 
)
Value:
(((Uchar *)(a))[1] = ((i) >> 8) & 0xFF,\
((Uchar *)(a))[0] = (i) & 0xFF)
unsigned char Uchar
Definition: utypes.h:45
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 80 of file intcvt.h.

◆ li_to_3_byte

#define li_to_3_byte (   a,
  i 
)
Value:
(((Uchar *)(a))[2] = ((i) >> 16)& 0xFF,\
((Uchar *)(a))[1] = ((i) >> 8) & 0xFF,\
((Uchar *)(a))[0] = (i) & 0xFF)
unsigned char Uchar
Definition: utypes.h:45
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 83 of file intcvt.h.

◆ li_to_4_byte

#define li_to_4_byte (   a,
  i 
)
Value:
(((Uchar *)(a))[3] = ((i) >> 24)& 0xFF,\
((Uchar *)(a))[2] = ((i) >> 16)& 0xFF,\
((Uchar *)(a))[1] = ((i) >> 8) & 0xFF,\
((Uchar *)(a))[0] = (i) & 0xFF)
unsigned char Uchar
Definition: utypes.h:45
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define a
Definition: ke_i.h:78
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 87 of file intcvt.h.