#include <stdint.h>
#include "Xosdefs.h"
#include <stddef.h>
#include "Xfuncs.h"
Go to the source code of this file.
|
#define | MAXSCREENS 3 |
|
#define | MAXCLIENTS 128 |
|
#define | MAXFORMATS 8 |
|
#define | MAXVISUALS_PER_SCREEN 50 |
|
#define | TRUE 1 |
|
#define | FALSE 0 |
|
#define | NullBox ((BoxPtr)0) |
|
#define | MILLI_PER_MIN (1000 * 60) |
|
#define | MILLI_PER_SECOND (1000) |
|
#define | USE_BACKGROUND_PIXEL 3 |
|
#define | USE_BORDER_PIXEL 3 |
|
#define | lswapl(x) |
|
#define | lswaps(x) ((((x) & 0xff) << 8) | (((x) >> 8) & 0xff)) |
|
#define | min(a, b) (((a) < (b)) ? (a) : (b)) |
|
#define | max(a, b) (((a) > (b)) ? (a) : (b)) |
|
#define | abs(a) ((a) > 0 ? (a) : -(a)) |
|
#define | fabs(a) ((a) > 0.0 ? (a) : -(a)) /* floating absolute value */ |
|
#define | sign(x) ((x) < 0 ? -1 : ((x) > 0 ? 1 : 0)) |
|
#define | modulus(a, b, d) if (((d) = (a) % (b)) < 0) (d) += (b) |
|
#define | lowbit(x) ((x) & (~(x) + 1)) |
|
#define | MAXSHORT 32767 |
|
#define | MINSHORT -MAXSHORT |
|
#define | LengthRestB(stuff) (((uint32_t)stuff->length << 2) - sizeof(*stuff)) |
|
#define | LengthRestS(stuff) (((uint32_t)stuff->length << 1) - (sizeof(*stuff) >> 1)) |
|
#define | LengthRestL(stuff) ((uint32_t)stuff->length - (sizeof(*stuff) >> 2)) |
|
#define | SwapRestS(stuff) SwapShorts((short *)(stuff + 1), LengthRestS(stuff)) |
|
#define | SwapRestL(stuff) SwapLongs((int32_t *)(stuff + 1), LengthRestL(stuff)) |
|
#define | swapl(x, n) |
|
#define | swaps(x, n) |
|
#define | cpswapl(src, dst) |
|
#define | cpswaps(src, dst) |
|
◆ abs
#define abs |
( |
|
a | ) |
((a) > 0 ? (a) : -(a)) |
◆ cpswapl
#define cpswapl |
( |
|
src, |
|
|
|
dst |
|
) |
| |
Value: ((char *)&(dst))[0] = ((char *) &(src))[3];\
((char *)&(dst))[1] = ((char *) &(src))[2];\
((char *)&(dst))[2] = ((char *) &(src))[1];\
((char *)&(dst))[3] = ((char *) &(src))[0];
Definition at line 142 of file misc.h.
◆ cpswaps
#define cpswaps |
( |
|
src, |
|
|
|
dst |
|
) |
| |
Value: ((char *) &(dst))[0] = ((char *) &(src))[1];\
((char *) &(dst))[1] = ((char *) &(src))[0];
Definition at line 149 of file misc.h.
◆ fabs
◆ FALSE
◆ LengthRestB
#define LengthRestB |
( |
|
stuff | ) |
(((uint32_t)stuff->length << 2) - sizeof(*stuff)) |
◆ LengthRestL
#define LengthRestL |
( |
|
stuff | ) |
((uint32_t)stuff->length - (sizeof(*stuff) >> 2)) |
◆ LengthRestS
#define LengthRestS |
( |
|
stuff | ) |
(((uint32_t)stuff->length << 1) - (sizeof(*stuff) >> 1)) |
◆ lowbit
#define lowbit |
( |
|
x | ) |
((x) & (~(x) + 1)) |
◆ lswapl
Value:
(((
x) & 0xff0000) >> 8) |\
Definition at line 79 of file misc.h.
◆ lswaps
#define lswaps |
( |
|
x | ) |
((((x) & 0xff) << 8) | (((x) >> 8) & 0xff)) |
◆ max
#define max |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) > (b)) ? (a) : (b)) |
◆ MAXCLIENTS
◆ MAXFORMATS
◆ MAXSCREENS
◆ MAXSHORT
◆ MAXVISUALS_PER_SCREEN
#define MAXVISUALS_PER_SCREEN 50 |
◆ MILLI_PER_MIN
#define MILLI_PER_MIN (1000 * 60) |
◆ MILLI_PER_SECOND
#define MILLI_PER_SECOND (1000) |
◆ min
#define min |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) < (b)) ? (a) : (b)) |
◆ MINSHORT
◆ modulus
#define modulus |
( |
|
a, |
|
|
|
b, |
|
|
|
d |
|
) |
| if (((d) = (a) % (b)) < 0) (d) += (b) |
◆ NullBox
#define NullBox ((BoxPtr)0) |
◆ sign
#define sign |
( |
|
x | ) |
((x) < 0 ? -1 : ((x) > 0 ? 1 : 0)) |
◆ swapl
Value:
((
char *) (
x))[0] = ((
char *) (
x))[3];\
((
char *) (
x))[1] = ((
char *) (
x))[2];\
Definition at line 129 of file misc.h.
◆ SwapRestL
◆ SwapRestS
◆ swaps
Value:
((
char *) (
x))[0] = ((
char *) (
x))[1];\
Definition at line 137 of file misc.h.
◆ TRUE
◆ USE_BACKGROUND_PIXEL
#define USE_BACKGROUND_PIXEL 3 |
◆ USE_BORDER_PIXEL
#define USE_BORDER_PIXEL 3 |
◆ ATOM
◆ Bool
◆ PIXEL
◆ pointer
◆ SwapLongs()
◆ SwapShorts()
◆ globalSerialNumber
uint32_t globalSerialNumber |
◆ serverGeneration
uint32_t serverGeneration |