/external/ltp/testcases/kernel/device-drivers/block/block_dev_kernel/ |
D | ltp_block_dev.c | 111 int major[MAX_MAJOR + 1]; in tc02() local 121 memset(major, 0, sizeof(major)); in tc02() 123 for (i = 0; i < sizeof(major) / sizeof(*major); ++i) { in tc02() 124 major[i] = register_blkdev(0, BLK_DEV_NAME); in tc02() 125 prk_debug("major[%i] = %i\n", i, major[i]); in tc02() 127 if (major[i] == -EBUSY) { in tc02() 129 major[i]); in tc02() 130 } else if (major[i] < 0) { in tc02() 132 major[i]); in tc02() 137 for (i = 0; i < sizeof(major) / sizeof(*major); ++i) { in tc02() [all …]
|
/external/libpcap/pcap/ |
D | compiler-tests.h | 83 #define PCAP_IS_AT_LEAST_GNUC_VERSION(major, minor) 0 argument 85 #define PCAP_IS_AT_LEAST_GNUC_VERSION(major, minor) \ argument 86 (__GNUC__ > (major) || \ 87 (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) 95 #define PCAP_IS_AT_LEAST_CLANG_VERSION(major, minor) 0 argument 97 #define PCAP_IS_AT_LEAST_CLANG_VERSION(major, minor) \ argument 98 (__clang_major__ > (major) || \ 99 (__clang_major__ == (major) && __clang_minor__ >= (minor))) 121 #define PCAP_IS_AT_LEAST_SUNC_VERSION(major,minor) 0 argument 123 #define PCAP_SUNPRO_VERSION_TO_BCD(major, minor) \ argument [all …]
|
/external/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 …]
|
/external/harfbuzz_ng/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 …]
|
/external/llvm-project/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 …]
|
/external/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 …]
|
/external/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 …]
|
/external/tensorflow/third_party/gpus/ |
D | find_rocm_config.py | 53 def _get_composite_version_number(major, minor, patch): argument 54 return 10000 * major + 100 * minor + patch 80 major = int(version_numbers[0]) 83 return major, minor, patch 85 major, minor, patch = rocm_version_numbers(rocm_install_path) 88 "rocm_version_number": _get_composite_version_number(major, minor, patch) 105 major = _get_header_version(version_file, "HIP_VERSION_MAJOR") 107 return 100 * major + minor 123 major = _get_header_version(version_file, "MIOPEN_VERSION_MAJOR") 126 return major, minor, patch [all …]
|
/external/webrtc/rtc_base/ |
D | win32.h | 56 bool GetOsVersion(int* major, int* minor, int* build); 59 int major; in IsWindowsVistaOrLater() local 60 return (GetOsVersion(&major, nullptr, nullptr) && major >= kWindowsVista); in IsWindowsVistaOrLater() 64 int major, minor; in IsWindowsXpOrLater() local 65 return (GetOsVersion(&major, &minor, nullptr) && in IsWindowsXpOrLater() 66 (major >= kWindowsVista || (major == kWindows2000 && minor >= 1))); in IsWindowsXpOrLater() 70 int major, minor; in IsWindows8OrLater() local 71 return (GetOsVersion(&major, &minor, nullptr) && in IsWindows8OrLater() 72 (major > kWindowsVista || (major == kWindowsVista && minor >= 2))); in IsWindows8OrLater() 76 int major; in IsWindows10OrLater() local [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mac.h | 35 u16 major; member 38 VersionBase(u16 major, u16 minor) : major(major), minor(minor) {} in VersionBase() 41 return major == other.major && minor == other.minor; 44 return major > other.major || 45 (major == other.major && minor >= other.minor); 51 MacosVersion(u16 major, u16 minor) : VersionBase(major, minor) {} in MacosVersion() 55 DarwinKernelVersion(u16 major, u16 minor) : VersionBase(major, minor) {} in DarwinKernelVersion()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/tlswire/util/ |
D | TlsProtocolVersion.java | 30 public final int major; field in TlsProtocolVersion 33 private TlsProtocolVersion(int major, int minor, String name) { in TlsProtocolVersion() argument 34 this.major = major; in TlsProtocolVersion() 38 public static TlsProtocolVersion valueOf(int major, int minor) { in valueOf() argument 39 if (major == 3) { in valueOf() 53 return new TlsProtocolVersion(major, minor, major + "." + minor); in valueOf() 56 int major = in.readUnsignedByte(); in read() local 58 return TlsProtocolVersion.valueOf(major, minor); in read() 68 result = prime * result + major; in hashCode() 84 if (major != other.major) { in equals()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/tlswire/util/ |
D | TlsProtocolVersion.java | 28 public final int major; field in TlsProtocolVersion 31 private TlsProtocolVersion(int major, int minor, String name) { in TlsProtocolVersion() argument 32 this.major = major; in TlsProtocolVersion() 36 public static TlsProtocolVersion valueOf(int major, int minor) { in valueOf() argument 37 if (major == 3) { in valueOf() 51 return new TlsProtocolVersion(major, minor, major + "." + minor); in valueOf() 54 int major = in.readUnsignedByte(); in read() local 56 return TlsProtocolVersion.valueOf(major, minor); in read() 66 result = prime * result + major; in hashCode() 82 if (major != other.major) { in equals()
|
/external/apache-http/src/org/apache/http/ |
D | ProtocolVersion.java | 70 protected final int major; field in ProtocolVersion 83 public ProtocolVersion(String protocol, int major, int minor) { in ProtocolVersion() argument 88 if (major < 0) { in ProtocolVersion() 97 this.major = major; in ProtocolVersion() 116 return major; in getMajor() 144 public ProtocolVersion forVersion(int major, int minor) { in forVersion() argument 146 if ((major == this.major) && (minor == this.minor)) { in forVersion() 151 return new ProtocolVersion(this.protocol, major, minor); in forVersion() 161 return this.protocol.hashCode() ^ (this.major * 100000) ^ this.minor; in hashCode() 188 (this.major == that.major) && in equals() [all …]
|
D | HttpVersion.java | 74 public HttpVersion(int major, int minor) { in HttpVersion() argument 75 super(HTTP, major, minor); in HttpVersion() 87 public ProtocolVersion forVersion(int major, int minor) { in forVersion() argument 89 if ((major == this.major) && (minor == this.minor)) { in forVersion() 93 if (major == 1) { in forVersion() 101 if ((major == 0) && (minor == 9)) { in forVersion() 106 return new HttpVersion(major, minor); in forVersion()
|
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/alts/handshaker/ |
D | transport_security_common_api.cc | 34 versions->max_rpc_version.major = max_major; in grpc_gcp_rpc_protocol_versions_set_max() 48 versions->min_rpc_version.major = min_major; in grpc_gcp_rpc_protocol_versions_set_min() 116 versions->max_rpc_version.major = in grpc_gcp_rpc_protocol_versions_assign_from_upb() 121 versions->max_rpc_version.major = 0; in grpc_gcp_rpc_protocol_versions_assign_from_upb() 127 versions->min_rpc_version.major = in grpc_gcp_rpc_protocol_versions_assign_from_upb() 132 versions->min_rpc_version.major = 0; in grpc_gcp_rpc_protocol_versions_assign_from_upb() 143 value->max_rpc_version.major); in grpc_gcp_RpcProtocolVersions_assign_from_struct() 149 value->min_rpc_version.major); in grpc_gcp_RpcProtocolVersions_assign_from_struct() 167 grpc_gcp_rpc_protocol_versions_set_max(dst, src->max_rpc_version.major, in grpc_gcp_rpc_protocol_versions_copy() 169 grpc_gcp_rpc_protocol_versions_set_min(dst, src->min_rpc_version.major, in grpc_gcp_rpc_protocol_versions_copy() [all …]
|
/external/angle/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);
|
/external/skqp/src/gpu/gl/ |
D | GrGLUtil.cpp | 72 int major, minor; in GrGLGetStandardInUseFromString() local 75 int n = sscanf(versionString, "%d.%d", &major, &minor); in GrGLGetStandardInUseFromString() 82 n = sscanf(versionString, "OpenGL ES-%c%c %d.%d", profile, profile+1, &major, &minor); in GrGLGetStandardInUseFromString() 89 n = sscanf(versionString, "OpenGL ES %d.%d", &major, &minor); in GrGLGetStandardInUseFromString() 102 int major, minor, rev, driverMajor, driverMinor, driverPoint; in GrGLGetDriverInfo() local 118 (3 == sscanf(versionString, "OpenGL ES %d.%d %8s", &major, &minor, suffix) && in GrGLGetDriverInfo() 128 &major, &minor, &rev, &driverMajor, &driverMinor); in GrGLGetDriverInfo() 136 &major, &minor, &driverMajor, &driverMinor); in GrGLGetDriverInfo() 139 &major, &minor, &driverMajor, &driverMinor); in GrGLGetDriverInfo() 151 &major, &minor, &driverMajor, &driverMinor); in GrGLGetDriverInfo() [all …]
|
/external/tensorflow/tensorflow/tools/ci_build/ |
D | update_version.py | 70 def __init__(self, major, minor, patch, identifier_string, version_type): argument 80 self.major = major 88 self.string = "%s.%s.%s%s" % (self.major, 103 return_string = "%s.%s.%s%s" % (self.major, 109 return_string = "%s.%s.%s" % (self.major, 129 major, minor, extension = string.split(".", 2) 139 return Version(major, 185 replace_string_in_line("#define TF_MAJOR_VERSION %s" % old_version.major, 186 "#define TF_MAJOR_VERSION %s" % new_version.major, 209 replace_string_in_line(r"%s\.%s\.([[:alnum:]]+)-" % (old_version.major, [all …]
|
/external/deqp/external/vulkancts/scripts/ |
D | gen_ext_deps.py | 40 def VK_MAKE_VERSION(major, minor, patch): argument 41 return (((major) << 22) | ((minor) << 12) | (patch)) 66 for ( major, minor, ext, extDeps ) in extDepsDict: 68 yield '\tstd::make_tuple({}, {}, "{}", "{}"),'.format(major, minor, ext, dep) 74 for ( version, major, minor ) in apiVersions: 75 yield '\tstd::make_tuple({}, {}, {}),'.format(version, major, minor) 113 for (major,minor) in apiVersionID: 114 apiVersions.append((VK_MAKE_VERSION(major, minor, 0),major,minor)) 121 for (version,major,minor) in apiVersions: 126 allExtDepsDict[info.type].append( ( major, minor, ext, extDeps ) ) [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_mac_test.cpp | 25 void ParseVersion(const char *vers, u16 *major, u16 *minor); 28 u16 major, minor; in TEST() local 30 ParseVersion("11.22.33", &major, &minor); in TEST() 31 EXPECT_EQ(major, 11); in TEST() 34 ParseVersion("1.2", &major, &minor); in TEST() 35 EXPECT_EQ(major, 1); in TEST() 53 EXPECT_EQ(vers.major, 10); in TEST() 59 u16 kernel_major = GetDarwinKernelVersion().major; in TEST() 63 EXPECT_EQ(vers.major, expected_major); in TEST() 71 oss << vers.major << '.' << vers.minor; in TEST()
|
/external/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 …]
|
/external/deqp-deps/glslang/ |
D | build_info.h.tmpl | 37 #define GLSLANG_VERSION_MAJOR <major> 42 #define GLSLANG_VERSION_GREATER_THAN(major, minor, patch) \ 43 (((major) > GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \ 47 #define GLSLANG_VERSION_GREATER_OR_EQUAL_TO(major, minor, patch) \ 48 (((major) > GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \ 52 #define GLSLANG_VERSION_LESS_THAN(major, minor, patch) \ 53 (((major) < GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \ 57 #define GLSLANG_VERSION_LESS_OR_EQUAL_TO(major, minor, patch) \ 58 (((major) < GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \
|
/external/angle/third_party/vulkan-deps/glslang/src/ |
D | build_info.h.tmpl | 37 #define GLSLANG_VERSION_MAJOR @major@ 42 #define GLSLANG_VERSION_GREATER_THAN(major, minor, patch) \ 43 (((major) > GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \ 47 #define GLSLANG_VERSION_GREATER_OR_EQUAL_TO(major, minor, patch) \ 48 (((major) > GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \ 52 #define GLSLANG_VERSION_LESS_THAN(major, minor, patch) \ 53 (((major) < GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \ 57 #define GLSLANG_VERSION_LESS_OR_EQUAL_TO(major, minor, patch) \ 58 (((major) < GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \
|
/external/python/setuptools/setuptools/ |
D | pep425tags.py | 54 return (sys.version_info[0], sys.pypy_version_info.major, 160 def get_darwin_arches(major, minor, machine): argument 166 def _supports_arch(major, minor, arch): argument 189 return (major, minor) <= (10, 5) 191 return (major, minor) == (10, 5) 193 return (major, minor) >= (10, 4) 195 return (major, minor) >= (10, 5) 198 if _supports_arch(major, minor, garch): 209 if _supports_arch(major, minor, machine): 213 if machine in groups[garch] and _supports_arch(major, minor, garch): [all …]
|
/external/grpc-grpc/src/core/tsi/alts/handshaker/ |
D | transport_security_common_api.cc | 35 versions->max_rpc_version.major = max_major; in grpc_gcp_rpc_protocol_versions_set_max() 52 versions->min_rpc_version.major = min_major; in grpc_gcp_rpc_protocol_versions_set_min() 138 grpc_gcp_rpc_protocol_versions_set_max(dst, src->max_rpc_version.major, in grpc_gcp_rpc_protocol_versions_copy() 140 grpc_gcp_rpc_protocol_versions_set_min(dst, src->min_rpc_version.major, in grpc_gcp_rpc_protocol_versions_copy() 151 if ((v1->major > v2->major) || in grpc_gcp_rpc_protocol_version_compare() 152 (v1->major == v2->major && v1->minor > v2->minor)) { in grpc_gcp_rpc_protocol_version_compare() 155 if ((v1->major < v2->major) || in grpc_gcp_rpc_protocol_version_compare() 156 (v1->major == v2->major && v1->minor < v2->minor)) { in grpc_gcp_rpc_protocol_version_compare()
|