r7.1.1:lfds711_atom_t

From liblfds.org
Revision as of 18:12, 16 February 2017 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└───liblfds711
    └───inc
        └───liblfds711
                lfds711_pal.h : defines, typedefs and includes

Typedef

typedef [type]  lfds711_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