Difference between revisions of "r7.1.0:Define LFDS710 PAL ALIGN DOUBLE POINTER"

From liblfds.org
Jump to: navigation, search
m (1 revision imported)
Line 7: Line 7:
  
 
==Define==
 
==Define==
  #define LFDS710_PAL_ALIGN_SINGLE_POINTER [lfds710_atom_t size in bytes]
+
  #define LFDS710_PAL_ALIGN_DOUBLE_POINTER [lfds710_pal_uint_t size in bytes multiplied by two]
  
 
==Example==
 
==Example==
Line 16: Line 16:
  
 
==Notes==
 
==Notes==
The value to use for this define is ''sizeof(lfds710_pal_atom_t)'', multipled by 2.  Unfortunately, compilers do not accept C code as an argument to their alignment keyword, so it is not possible to use ''sizeof(lfds710_pal_atom_t)*2'', or even ''LFDS710_PAL_ALIGN_SINGLE_POINTER*2'', in the source code.  As such, it must be provided in a define.
+
The value to use for this define is ''sizeof(lfds710_pal_uint_t)'', multipled by 2.  Unfortunately, compilers do not accept C code as an argument to their alignment keyword, so it is not possible to use ''sizeof(lfds710_pal_uint_t)*2'', or even ''LFDS710_PAL_ALIGN_SINGLE_POINTER*2'', in the source code.  As such, it must be provided in a define.
  
 
==See Also==
 
==See Also==
 
* [[r7.1.0:Porting Guide (liblfds)|Porting Guide (liblfds)]]
 
* [[r7.1.0:Porting Guide (liblfds)|Porting Guide (liblfds)]]
 
* ''[[r7.1.0:define LFDS710_PAL_ALIGN_SINGLE_POINTER|LFDS710_ALIGN_SINGLE_POINTER]]''
 
* ''[[r7.1.0:define LFDS710_PAL_ALIGN_SINGLE_POINTER|LFDS710_ALIGN_SINGLE_POINTER]]''

Revision as of 05:03, 27 May 2016

Source File

└───liblfds710
    └───inc
        └───liblfds710
                lfds710_lfds710_porting_abstraction_layer_processor.h

Define

#define LFDS710_PAL_ALIGN_DOUBLE_POINTER  [lfds710_pal_uint_t size in bytes multiplied by two]

Example

#define LFDS710_PAL_ALIGN_DOUBLE_POINTER  16

Optionality

This define is mandatory and the library cannot compile if it is not set.

Notes

The value to use for this define is sizeof(lfds710_pal_uint_t), multipled by 2. Unfortunately, compilers do not accept C code as an argument to their alignment keyword, so it is not possible to use sizeof(lfds710_pal_uint_t)*2, or even LFDS710_PAL_ALIGN_SINGLE_POINTER*2, in the source code. As such, it must be provided in a define.

See Also