Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

166
Vistas
what does this macro definition do?

I have no idea what ALIGMENT_ATTRIBUTE(B) is suppose to do in typedef because it is a empty definition. Does it form a function?

#define ALIGNMENT_ATTRIBUTE(B)

typedef ALIGNMENT_ATTRIBUTE(8) UInt64   T_AUInt64;
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It can be used in platforms where the alignment matters.

For example, it can be used in a platforms where uint64 must be located at an address which is divisible by 8.

In such scenario, you'd need to extend the definition of ALIGNMENT_ATTRIBUTE(B) using the platform's alignment-enforcement mechanism (which is typically compiler-specific), such as #pragma align(8) or alignas(8) or _declspec(align(8)).

In your specific example, it is defined as nothing, which implies that your platform does not have any alignment restrictions.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda