CpuFeatures_t.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.4
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.utils;
  9. public enum CpuFeatures_t {
  10. ARMv7(1),
  11. VFPv3(2),
  12. NEON(4);
  13. public final int swigValue() {
  14. return swigValue;
  15. }
  16. public static CpuFeatures_t swigToEnum(int swigValue) {
  17. CpuFeatures_t[] swigValues = CpuFeatures_t.class.getEnumConstants();
  18. if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
  19. return swigValues[swigValue];
  20. for (CpuFeatures_t swigEnum : swigValues)
  21. if (swigEnum.swigValue == swigValue)
  22. return swigEnum;
  23. throw new IllegalArgumentException("No enum " + CpuFeatures_t.class + " with value " + swigValue);
  24. }
  25. @SuppressWarnings("unused")
  26. private CpuFeatures_t() {
  27. this.swigValue = SwigNext.next++;
  28. }
  29. @SuppressWarnings("unused")
  30. private CpuFeatures_t(int swigValue) {
  31. this.swigValue = swigValue;
  32. SwigNext.next = swigValue+1;
  33. }
  34. @SuppressWarnings("unused")
  35. private CpuFeatures_t(CpuFeatures_t swigEnum) {
  36. this.swigValue = swigEnum.swigValue;
  37. SwigNext.next = this.swigValue+1;
  38. }
  39. private final int swigValue;
  40. private static class SwigNext {
  41. private static int next = 0;
  42. }
  43. }