humble-video-noarch/src/main/java/io/humble/ferry/JNIEnv.java
public static CPUArch getCPUArchFromGNUString(String gnuString)
  {
    final String nativeCpu = gnuString.toLowerCase();
    final CPUArch nativeArch;
    // then the native arch
    if (nativeCpu.startsWith("x86_64") ||
        nativeCpu.startsWith("amd64") ||
        nativeCpu.startsWith("ia64"))
      nativeArch = CPUArch.X86_64;
    else if (
        nativeCpu.startsWith("ppc64") ||
        nativeCpu.startsWith("powerpc64")
        )
      nativeArch = CPUArch.PPC64;
    else if (
        nativeCpu.startsWith("ppc") ||
        nativeCpu.startsWith("powerpc")
        )
      nativeArch = CPUArch.PPC;
    else if (
        nativeCpu.contains("86")
        )
      nativeArch = CPUArch.X86;
    else
      nativeArch = CPUArch.UNKNOWN;
 
    return nativeArch;
  }
public static CPUArch getCPUArchFromGNUString(String gnuString)
  {
    final String nativeCpu = gnuString.toLowerCase();
    final CPUArch nativeArch;
    // then the native arch
    if (nativeCpu.startsWith("x86_64") ||
        nativeCpu.startsWith("amd64") ||
        nativeCpu.startsWith("ia64"))
      nativeArch = CPUArch.X86_64;
    else if (
        nativeCpu.startsWith("ppc64") ||
        nativeCpu.startsWith("powerpc64")
        )
      nativeArch = CPUArch.PPC64;
    else if (
        nativeCpu.startsWith("ppc") ||
        nativeCpu.startsWith("powerpc")
        )
      nativeArch = CPUArch.PPC;
    else if (
        nativeCpu.contains("86")
        )
      nativeArch = CPUArch.X86;
    else
      nativeArch = CPUArch.UNKNOWN;
 
    return nativeArch;
  }
public static CPUArch getCPUArchFromGNUString ( String gnuString ) { final String nativeCpu = gnuString . toLowerCase ( ) ; final CPUArch nativeArch ; // then the native arch if ( nativeCpu . startsWith ( "x86_64" ) || nativeCpu . startsWith ( "amd64" ) || nativeCpu . startsWith ( "ia64" ) ) nativeArch = CPUArch . X86_64 ; else if ( nativeCpu . startsWith ( "ppc64" ) || nativeCpu . startsWith ( "powerpc64" ) ) nativeArch = CPUArch . PPC64 ; else if ( nativeCpu . startsWith ( "ppc" ) || nativeCpu . startsWith ( "powerpc" ) ) nativeArch = CPUArch . PPC ; else if ( nativeCpu . contains ( "86" ) ) nativeArch = CPUArch . X86 ; else nativeArch = CPUArch . UNKNOWN ; return nativeArch ; }
Return a CPUArch from parsing a GNU autoconf triple.

For example "x86_64-w64-mingw32" will return {@link JNIEnv.CPUArch#X86_64}
and "ppc-apple-darwin" will return {@link JNIEnv.CPUArch#PPC}.

@param gnuString the GNU string
@return the architecture
Return a CPUArch from parsing a GNU autoconf triple .