/third_party/ltp/testcases/kernel/device-drivers/block/block_dev_kernel/ |
D | ltp_block_dev.c | 113 int major[MAX_MAJOR + 1]; in tc02() local 123 memset(major, 0, sizeof(major)); in tc02() 125 for (i = 0; i < sizeof(major) / sizeof(*major); ++i) { in tc02() 126 major[i] = register_blkdev(0, BLK_DEV_NAME); in tc02() 127 prk_debug("major[%i] = %i\n", i, major[i]); in tc02() 129 if (major[i] == -EBUSY) { in tc02() 131 major[i]); in tc02() 132 } else if (major[i] < 0) { in tc02() 134 major[i]); in tc02() 139 for (i = 0; i < sizeof(major) / sizeof(*major); ++i) { in tc02() [all …]
|
/third_party/node/deps/brotli/c/include/brotli/ |
D | port.h | 17 #define BROTLI_MAKE_VERSION(major, minor, revision) \ argument 18 (((major) * 1000000) + ((minor) * 1000) + (revision)) 28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \ argument 29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch)) 31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0) argument 50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0) argument 52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch))) 55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch))) [all …]
|
/third_party/skia/third_party/externals/brotli/c/include/brotli/ |
D | port.h | 17 #define BROTLI_MAKE_VERSION(major, minor, revision) \ argument 18 (((major) * 1000000) + ((minor) * 1000) + (revision)) 28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \ argument 29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch)) 31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0) argument 50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0) argument 52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch))) 55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch))) [all …]
|
/third_party/openssl/test/testutil/ |
D | provider.c | 69 int major, minor, patch; member 89 || sscanf(vs, "%d.%d.%d", &vers->major, &vers->minor, &vers->patch) != 3) in fips_provider_version() 99 int fips_provider_version_eq(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_eq() argument 106 return major == prov.major && minor == prov.minor && patch == prov.patch; in fips_provider_version_eq() 109 int fips_provider_version_ne(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_ne() argument 116 return major != prov.major || minor != prov.minor || patch != prov.patch; in fips_provider_version_ne() 119 int fips_provider_version_le(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_le() argument 126 return prov.major < major in fips_provider_version_le() 127 || (prov.major == major in fips_provider_version_le() 132 int fips_provider_version_lt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_lt() argument [all …]
|
/third_party/skia/third_party/externals/harfbuzz/test/api/ |
D | test-version.c | 35 unsigned int major, minor, micro; in test_version() local 38 hb_version (&major, &minor, µ); in test_version() 40 g_assert_cmpint (major, ==, HB_VERSION_MAJOR); in test_version() 44 s = g_strdup_printf ("%u.%u.%u", major, minor, micro); in test_version() 49 g_assert (HB_VERSION_ATLEAST (major, minor, micro)); in test_version() 50 if (major) in test_version() 51 g_assert (HB_VERSION_ATLEAST (major-1, minor, micro)); in test_version() 53 g_assert (HB_VERSION_ATLEAST (major, minor-1, micro)); in test_version() 55 g_assert (HB_VERSION_ATLEAST (major, minor, micro-1)); in test_version() 56 g_assert (!HB_VERSION_ATLEAST (major+1, minor, micro)); in test_version() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsMSAInstrFormats.td | 30 class MSA_BIT_B_FMT<bits<3> major, bits<6> minor>: MSAInst { 35 let Inst{25-23} = major; 43 class MSA_BIT_H_FMT<bits<3> major, bits<6> minor>: MSAInst { 48 let Inst{25-23} = major; 56 class MSA_BIT_W_FMT<bits<3> major, bits<6> minor>: MSAInst { 61 let Inst{25-23} = major; 69 class MSA_BIT_D_FMT<bits<3> major, bits<6> minor>: MSAInst { 74 let Inst{25-23} = major; 82 class MSA_2R_FILL_FMT<bits<8> major, bits<2> df, bits<6> minor>: MSAInst { 86 let Inst{25-18} = major; [all …]
|
/third_party/rust/crates/libc/libc-test/test/ |
D | makedev.rs | 20 pub fn makedev_ffi(major: c_uint, minor: c_uint) -> dev_t; in makedev_ffi() 23 fn compare(major: c_uint, minor: c_uint) { in compare() 24 let expected = unsafe { makedev_ffi(major, minor) }; in compare() 25 assert_eq!(libc::makedev(major, minor), expected); in compare() 31 for major in 0..256 { in test_8bits() 33 compare(major, minor); in test_8bits() 42 for major in [0, 1, 255, 256, 4095] { in test_android_like() 45 compare(major, minor); in test_android_like() 48 compare(major, (1 << 20) - 1); in test_android_like() 56 for major in [0, 1, 255] { in test_fbsd11_like() [all …]
|
/third_party/json/include/nlohmann/thirdparty/hedley/ |
D | hedley.hpp | 55 #define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + … argument 85 …fine JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VE… argument 87 #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0) argument 105 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0) argument 107 …#define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + … argument 109 …#define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (… argument 111 … #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor))) argument 127 …ine JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_V… argument 129 #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0) argument 143 …SON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_… argument [all …]
|
/third_party/typescript/src/compiler/ |
D | semver.ts | 37 readonly major: number; property in ts.Version 44 …constructor(major: number, minor?: number, patch?: number, prerelease?: string | readonly string[]… 45 …constructor(major: number | string, minor = 0, patch = 0, prerelease: string | readonly string[] =… 46 if (typeof major === "string") { 47 const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); 48 ({ major, minor, patch, prerelease, build } = result); 51 Debug.assert(major >= 0, "Invalid argument: major"); 61 this.major = major; 72 const { major, minor, patch, prerelease, build } = result; constant 73 return new Version(major, minor, patch, prerelease, build); [all …]
|
/third_party/vk-gl-cts/build/include/glslang/ |
D | build_info.h | 42 #define GLSLANG_VERSION_GREATER_THAN(major, minor, patch) \ argument 43 ((GLSLANG_VERSION_MAJOR) > (major) || ((major) == GLSLANG_VERSION_MAJOR && \ 47 #define GLSLANG_VERSION_GREATER_OR_EQUAL_TO(major, minor, patch) \ argument 48 ((GLSLANG_VERSION_MAJOR) > (major) || ((major) == GLSLANG_VERSION_MAJOR && \ 52 #define GLSLANG_VERSION_LESS_THAN(major, minor, patch) \ argument 53 ((GLSLANG_VERSION_MAJOR) < (major) || ((major) == GLSLANG_VERSION_MAJOR && \ 57 #define GLSLANG_VERSION_LESS_OR_EQUAL_TO(major, minor, patch) \ argument 58 ((GLSLANG_VERSION_MAJOR) < (major) || ((major) == GLSLANG_VERSION_MAJOR && \
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
D | gen_ext_deps.py | 41 def VK_MAKE_VERSION(major, minor, patch): argument 42 return (((major) << 22) | ((minor) << 12) | (patch)) 68 for ( major, minor, ext, extDeps ) in extDepsDict: 70 yield '\tstd::make_tuple({}, {}, "{}", "{}"),'.format(major, minor, ext, dep) 76 for ( version, major, minor ) in apiVersions: 77 yield '\tstd::make_tuple({}, {}, {}),'.format(version, major, minor) 85 (major, minor) = coreVersionsDict[extName] 86 yield '\tstd::make_tuple({}, {}, "{}"),'.format(major, minor, extName) 126 for (major,minor) in apiVersionID: 127 apiVersions.append((VK_MAKE_VERSION(major, minor, 0),major,minor)) [all …]
|
D | ohos_gen_ext_deps.py | 42 def VK_MAKE_VERSION(major, minor, patch): argument 43 return (((major) << 22) | ((minor) << 12) | (patch)) 69 for ( major, minor, ext, extDeps ) in extDepsDict: 71 yield '\tstd::make_tuple({}, {}, "{}", "{}"),'.format(major, minor, ext, dep) 77 for ( version, major, minor ) in apiVersions: 78 yield '\tstd::make_tuple({}, {}, {}),'.format(version, major, minor) 86 (major, minor) = coreVersionsDict[extName] 87 yield '\tstd::make_tuple({}, {}, "{}"),'.format(major, minor, extName) 127 for (major,minor) in apiVersionID: 128 apiVersions.append((VK_MAKE_VERSION(major, minor, 0),major,minor)) [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | Version.inc | 20 #undef major 24 : major(major_), 31 return std::tie(a.major, a.minor) == std::tie(b.major, b.minor); 36 return std::tie(a.major, a.minor) != std::tie(b.major, b.minor); 41 return std::tie(a.major, a.minor) >= std::tie(b.major, b.minor); 46 return std::tie(a.major, a.minor) <= std::tie(b.major, b.minor); 51 return std::tie(a.major, a.minor) < std::tie(b.major, b.minor); 56 return std::tie(a.major, a.minor) > std::tie(b.major, b.minor);
|
/third_party/skia/src/gpu/gl/ |
D | GrGLUtil.cpp | 33 int major, minor; in GrGLGetStandardInUseFromString() local 36 int n = sscanf(versionString, "%d.%d", &major, &minor); in GrGLGetStandardInUseFromString() 43 n = sscanf(versionString, "OpenGL ES %d.%d (WebGL %d.%d", &esMajor, &esMinor, &major, &minor); in GrGLGetStandardInUseFromString() 50 n = sscanf(versionString, "OpenGL ES-%c%c %d.%d", profile, profile+1, &major, &minor); in GrGLGetStandardInUseFromString() 57 n = sscanf(versionString, "OpenGL ES %d.%d", &major, &minor); in GrGLGetStandardInUseFromString() 70 int major, minor; in GrGLGetVersionFromString() local 74 int n = sscanf(versionString, "%d.%d Mesa %d.%d", &major, &minor, &mesaMajor, &mesaMinor); in GrGLGetVersionFromString() 76 return GR_GL_VER(major, minor); in GrGLGetVersionFromString() 79 n = sscanf(versionString, "%d.%d", &major, &minor); in GrGLGetVersionFromString() 81 return GR_GL_VER(major, minor); in GrGLGetVersionFromString() [all …]
|
/third_party/rust/crates/clap/examples/tutorial_builder/ |
D | 04_03_relations.md | 5 Usage: 04_03_relations[EXE] [OPTIONS] <--set-ver <VER>|--major|--minor|--patch> [INPUT_FILE] 12 --major auto inc major 23 <--set-ver <VER>|--major|--minor|--patch> 25 Usage: 04_03_relations[EXE] <--set-ver <VER>|--major|--minor|--patch> [INPUT_FILE] 29 $ 04_03_relations --major 32 $ 04_03_relations --major --minor 34 error: the argument '--major' cannot be used with '--minor' 36 Usage: 04_03_relations[EXE] <--set-ver <VER>|--major|--minor|--patch> [INPUT_FILE] 40 $ 04_03_relations --major -c config.toml 45 Usage: 04_03_relations[EXE] -c <CONFIG> <--set-ver <VER>|--major|--minor|--patch> <INPUT_FILE|--spe… [all …]
|
/third_party/rust/crates/clap/examples/tutorial_derive/ |
D | 04_03_relations.md | 5 Usage: 04_03_relations_derive[EXE] [OPTIONS] <--set-ver <VER>|--major|--minor|--patch> [INPUT_FILE] 12 --major auto inc major 23 <--set-ver <VER>|--major|--minor|--patch> 25 Usage: 04_03_relations_derive[EXE] <--set-ver <VER>|--major|--minor|--patch> [INPUT_FILE] 29 $ 04_03_relations_derive --major 32 $ 04_03_relations_derive --major --minor 34 error: the argument '--major' cannot be used with '--minor' 36 Usage: 04_03_relations_derive[EXE] <--set-ver <VER>|--major|--minor|--patch> [INPUT_FILE] 40 $ 04_03_relations_derive --major -c config.toml 45 Usage: 04_03_relations_derive[EXE] -c <CONFIG> <--set-ver <VER>|--major|--minor|--patch> <INPUT_FIL… [all …]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-bit-set.hh | 72 int cmp (const page_map_t &o) const { return cmp (o.major); } in cmp() 73 int cmp (uint32_t o_major) const { return (int) o_major - (int) major; } in cmp() 75 uint32_t major; member 268 int m = (int) page_map[i].major; in del_pages() 363 if (page_map[a].major != other.page_map[b].major || in is_equal() 386 uint32_t spm = page_map[spi].major; in is_subset() 387 uint32_t lpm = larger_set.page_map[lpi].major; in is_subset() 479 if (page_map[a].major == other.page_map[b].major) in process() 496 else if (page_map[a].major < other.page_map[b].major) in process() 531 if (page_map[a - 1].major == other.page_map[b - 1].major) in process() [all …]
|
/third_party/glfw/src/ |
D | context.c | 64 if ((ctxconfig->major < 1 || ctxconfig->minor < 0) || in _glfwIsValidContextConfig() 65 (ctxconfig->major == 1 && ctxconfig->minor > 5) || in _glfwIsValidContextConfig() 66 (ctxconfig->major == 2 && ctxconfig->minor > 1) || in _glfwIsValidContextConfig() 67 (ctxconfig->major == 3 && ctxconfig->minor > 3)) in _glfwIsValidContextConfig() 77 ctxconfig->major, ctxconfig->minor); in _glfwIsValidContextConfig() 92 if (ctxconfig->major <= 2 || in _glfwIsValidContextConfig() 93 (ctxconfig->major == 3 && ctxconfig->minor < 2)) in _glfwIsValidContextConfig() 104 if (ctxconfig->forward && ctxconfig->major <= 2) in _glfwIsValidContextConfig() 114 if (ctxconfig->major < 1 || ctxconfig->minor < 0 || in _glfwIsValidContextConfig() 115 (ctxconfig->major == 1 && ctxconfig->minor > 1) || in _glfwIsValidContextConfig() [all …]
|
/third_party/glslang/ |
D | build_info.h.tmpl | 37 #define GLSLANG_VERSION_MAJOR @major@ 42 #define GLSLANG_VERSION_GREATER_THAN(major, minor, patch) \ 43 ((GLSLANG_VERSION_MAJOR) > (major) || ((major) == GLSLANG_VERSION_MAJOR && \ 47 #define GLSLANG_VERSION_GREATER_OR_EQUAL_TO(major, minor, patch) \ 48 ((GLSLANG_VERSION_MAJOR) > (major) || ((major) == GLSLANG_VERSION_MAJOR && \ 52 #define GLSLANG_VERSION_LESS_THAN(major, minor, patch) \ 53 ((GLSLANG_VERSION_MAJOR) < (major) || ((major) == GLSLANG_VERSION_MAJOR && \ 57 #define GLSLANG_VERSION_LESS_OR_EQUAL_TO(major, minor, patch) \ 58 ((GLSLANG_VERSION_MAJOR) < (major) || ((major) == GLSLANG_VERSION_MAJOR && \
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluRenderContext.hpp | 79 ApiType (int major, int minor, Profile profile) : m_bits(pack(major, minor, profile)) {} in ApiType() argument 91 static ApiType es (int major, int minor) { return ApiType(major, minor, PROFILE_ES); } in es() argument 92 static ApiType core (int major, int minor) { return ApiType(major, minor, PROFILE_CORE); } in core() argument 93 …static ApiType compatibility (int major, int minor) { return ApiType(major, minor, PROFILE_COMPAT… in compatibility() argument 99 static deUint32 pack (int major, int minor, Profile profile); 116 inline deUint32 ApiType::pack (int major, int minor, Profile profile) in pack() argument 120 DE_ASSERT((deUint32(major) & ~((1<<MAJOR_BITS)-1)) == 0); in pack() 124 bits |= deUint32(major) << MAJOR_SHIFT; in pack() 147 ContextType (int major, int minor, Profile profile, ContextFlags flags = ContextFlags(0)); 170 inline ContextType::ContextType (int major, int minor, Profile profile, ContextFlags flags) in ContextType() argument [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | VersionInfo.java | 323 public static VersionInfo getInstance(int major, int minor, int milli, in getInstance() argument 328 if (major < 0 || major > 255 || minor < 0 || minor > 255 || in getInstance() 332 int version = getInt(major, minor, milli, micro); in getInstance() 355 public static VersionInfo getInstance(int major, int minor, int milli) in getInstance() argument 357 return getInstance(major, minor, milli, 0); in getInstance() 369 public static VersionInfo getInstance(int major, int minor) in getInstance() argument 371 return getInstance(major, minor, 0, 0); in getInstance() 382 public static VersionInfo getInstance(int major) in getInstance() argument 384 return getInstance(major, 0, 0, 0); in getInstance() 597 private static int getInt(int major, int minor, int milli, int micro) in getInt() argument [all …]
|
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
D | AbstractTestLog.java | 23 static public boolean isICUVersionBefore(int major, int minor) { in isICUVersionBefore() argument 24 return isICUVersionBefore(major, minor, 0); in isICUVersionBefore() 30 static public boolean isICUVersionBefore(int major, int minor, int milli) { in isICUVersionBefore() argument 31 return VersionInfo.ICU_VERSION.compareTo(VersionInfo.getInstance(major, minor, milli)) < 0; in isICUVersionBefore() 37 static public boolean isICUVersionAtLeast(int major, int minor) { in isICUVersionAtLeast() argument 38 return isICUVersionAtLeast(major, minor, 0); in isICUVersionAtLeast() 44 static public boolean isICUVersionAtLeast(int major, int minor, int milli) { in isICUVersionAtLeast() argument 45 return !isICUVersionBefore(major, minor, milli); in isICUVersionAtLeast()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/ |
D | AbstractTestLog.java | 24 static public boolean isICUVersionBefore(int major, int minor) { in isICUVersionBefore() argument 25 return isICUVersionBefore(major, minor, 0); in isICUVersionBefore() 31 static public boolean isICUVersionBefore(int major, int minor, int milli) { in isICUVersionBefore() argument 32 return VersionInfo.ICU_VERSION.compareTo(VersionInfo.getInstance(major, minor, milli)) < 0; in isICUVersionBefore() 38 static public boolean isICUVersionAtLeast(int major, int minor) { in isICUVersionAtLeast() argument 39 return isICUVersionAtLeast(major, minor, 0); in isICUVersionAtLeast() 45 static public boolean isICUVersionAtLeast(int major, int minor, int milli) { in isICUVersionAtLeast() argument 46 return !isICUVersionBefore(major, minor, milli); in isICUVersionAtLeast()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | VersionInfo.java | 277 public static VersionInfo getInstance(int major, int minor, int milli, in getInstance() argument 282 if (major < 0 || major > 255 || minor < 0 || minor > 255 || in getInstance() 286 int version = getInt(major, minor, milli, micro); in getInstance() 308 public static VersionInfo getInstance(int major, int minor, int milli) in getInstance() argument 310 return getInstance(major, minor, milli, 0); in getInstance() 321 public static VersionInfo getInstance(int major, int minor) in getInstance() argument 323 return getInstance(major, minor, 0, 0); in getInstance() 333 public static VersionInfo getInstance(int major) in getInstance() argument 335 return getInstance(major, 0, 0, 0); in getInstance() 581 private static int getInt(int major, int minor, int milli, int micro) in getInt() argument [all …]
|
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/ |
D | SystemInfo_vulkan.cpp | 177 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() 182 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() 187 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() 192 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() 197 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() 202 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() 207 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() 215 gpu.detailedDriverVersion.major = properties.driverVersion >> 22; in GetSystemInfoVulkanWithICD() 227 gpu.detailedDriverVersion.major = properties.driverVersion >> 22; in GetSystemInfoVulkanWithICD() 234 gpu.detailedDriverVersion.major = properties.driverVersion; in GetSystemInfoVulkanWithICD() [all …]
|