public static int get_nearest_power_of_two(int value, int[] output) { if (System.Environment.Is64BitProcess) { return(DataHandlerLibrary64.get_nearest_power_of_two(value, output)); } else { return(DataHandlerLibrary32.get_nearest_power_of_two(value, output)); } }
public static int get_nearest_power_of_two(int value, int[] output) { switch (PlatformHelper.get_library_environment()) { case LibraryEnvironment.x64: return(DataHandlerLibrary64.get_nearest_power_of_two(value, output)); case LibraryEnvironment.x86: return(DataHandlerLibrary32.get_nearest_power_of_two(value, output)); case LibraryEnvironment.Linux: return(DataHandlerLibraryLinux.get_nearest_power_of_two(value, output)); case LibraryEnvironment.MacOS: return(DataHandlerLibraryMac.get_nearest_power_of_two(value, output)); } return((int)CustomExitCodes.GENERAL_ERROR); }