Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!