r6.0.1:lfds601_atom_t

From liblfds.org
Revision as of 14:07, 4 January 2015 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

/liblfds601/inc/liblfds601.h

Typedef

typedef [type]  lfds601_atom_t;

Notes

To abstract away the differences in word length on different plaforms, liblfds uses a typedef.

The type used should be the unsigned integer type which is the same length in bytes as the pointer type. On 32-bit platforms, this is usually an unsigned long int. On 64-bit platforms, this is usually an unsigned long long int.

You can check by writing a small C program to print the value of sizeof(void *). This gives you the length of the pointer type. Then find the sizeof() the unsigned integer types on your system until you find an unsigned integer type of the same byte length.

See Also