<commit_before>#ifndef __ASM_MACH_APICDEF_H
#define __ASM_MACH_APICDEF_H

#include <asm/apic.h>

#ifdef CONFIG_X86_64
#define	APIC_ID_MASK		(0xFFu<<24)
#define GET_APIC_ID(x)          (((x)>>24)&0xFFu)
#define	SET_APIC_ID(x)		(((x)<<24))
#else
#define		APIC_ID_MASK		(0xF<<24)
static inline unsigned get_apic_id(unsigned long x) 
{
	unsigned int ver = GET_APIC_VERSION(apic_read(APIC_LVR));
	if (APIC_XAPIC(ver))
		return (((x)>>24)&0xFF);
	else
		return (((x)>>24)&0xF);
} 

#define		GET_APIC_ID(x)	get_apic_id(x)
#endif

#endif<commit_msg>x86, VisWS: turn into generic arch, eliminate asm-x86/mach-visws/mach_apicdef.h<commit_after>#include "../mach-default/mach_apicdef.h"
{'fraction_non_alphanumeric': 0.15703703703703703, 'fraction_numerical': 0.037037037037037035, 'mean_word_length': 6.191489361702128, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2481183', 'n_tokens_mistral': 330, 'n_tokens_neox': 314, 'n_words': 51}