align8.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ALIGN_STACK_8   {int alignstack; asm {mov alignstack, esp} asm {and esp, 0xFFFFFFF8}
 
#define RESTORE_STACK   asm {mov esp, alignstack}}
 
#define ALIGN8(F)   F
 

Functions

void * malloc8 (unsigned size)
 
void free8 (void *buffer8)
 

Detailed Description

  • 8-byte (64-bit) alignment routines.

This file provides tools for aligning boundaries of arrays, particularly of 64-bit units, e.g. double- precision floating points, to physical addresses divisible by 8, including aligning dynamically allocated memory block and aligning call stack. Currently stack alignment is disabled due to lack of compiler support for Intel assembly.

Further reading: "Double precision floating point alignment issue.pdf"