@@ -0,0 +1,1121 @@
+/*%0A * Copyright (C) 2010 Wayne Meissner%0A *%0A * This file is part of jnr-x86asm.%0A *%0A * This code is free software: you can redistribute it and/or modify it under%0A * the terms of the GNU Lesser General Public License version 3 only, as%0A * published by the Free Software Foundation.%0A *%0A * This code is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or%0A * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License%0A * version 3 for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * version 3 along with this work.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage com.kenai.jnr.x86asm;%0A%0A/**%0A * Information about target CPU%0A */%0Apublic class CpuInfo %7B%0A%0A    final Vendor vendor;%0A    final int family;%0A    %0A    public enum Vendor %7B%0A        INTEL,%0A        AMD,%0A        GENERIC;%0A    %7D%0A%0A    public static final CpuInfo GENERIC = new CpuInfo(Vendor.GENERIC, 0);%0A%0A    public CpuInfo(Vendor vendor, int family) %7B%0A        this.vendor = vendor;%0A        this.family = family;%0A    %7D%0A%7D%0A

Add CpuInfo to select some cpu-specific optimizations