13.07.2015 Views

Intel® 64 and IA-32 Architectures Optimization Reference Manual

Intel® 64 and IA-32 Architectures Optimization Reference Manual

Intel® 64 and IA-32 Architectures Optimization Reference Manual

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MULTICORE AND HYPER-THREADING TECHNOLOGYExample 8-11. Assembling 3-level IDs, Affinity Masks for Each Logical Processor (Contd.)typedef struct {AFFINITYMASK affinity_mask; // 8 byte in <strong>64</strong>-bit mode,// 4 byte otherwise.unsigned char smt;; unsigned char core;unsigned char pkg;unsigned char initialAPIC_ID;} APIC_MAP_T;APIC_MAP_T apic_conf[<strong>64</strong>];ThreadAffinityMask = 1;ProcessorNum = 0;while (ThreadAffinityMask != 0 && ThreadAffinityMask

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!