Implement architecture detection macro