Home
last modified time | relevance | path

Searched refs:normalized (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/external/libtextclassifier/native/utils/sentencepiece/
Dnormalizer_test.cc45 std::string normalized; in TEST() local
46 EXPECT_TRUE(normalizer.Normalize("hello there", &normalized)); in TEST()
47 EXPECT_EQ(normalized, "▁hello▁there"); in TEST()
52 std::string normalized; in TEST() local
53 EXPECT_TRUE(normalizer.Normalize("when is the world cup?", &normalized)); in TEST()
54 EXPECT_EQ(normalized, "▁when▁is▁the▁world▁cup?"); in TEST()
59 std::string normalized; in TEST() local
60 EXPECT_TRUE(normalizer.Normalize("general\tkenobi", &normalized)); in TEST()
61 EXPECT_EQ(normalized, "▁general▁kenobi"); in TEST()
66 std::string normalized; in TEST() local
[all …]
/external/mesa3d/src/mesa/main/
Dformat_utils.c289 bool normalized, dst_integer, src_integer, is_signed; in _mesa_format_convert() local
418 normalized = false; in _mesa_format_convert()
426 normalized = _mesa_array_format_is_normalized(src_array_format); in _mesa_format_convert()
437 normalized |= _mesa_array_format_is_normalized(dst_array_format); in _mesa_format_convert()
450 src2dst, normalized, width); in _mesa_format_convert()
539 rebased_src2rgba, normalized, width); in _mesa_format_convert()
562 rgba2dst, normalized, width); in _mesa_format_convert()
584 rebased_src2rgba, normalized, width); in _mesa_format_convert()
596 rebase_swizzle, normalized, width); in _mesa_format_convert()
606 rgba2dst, normalized, width); in _mesa_format_convert()
[all …]
/external/eigen/test/
Dgeo_quaternion.cpp80 q1 = AngleAxisx(a, v0.normalized()); in quaternion()
81 q2 = AngleAxisx(a, v1.normalized()); in quaternion()
117 && (aa.axis() - v1.normalized()).norm() < Scalar(1.99) in quaternion()
118 && (aa.axis() + v1.normalized()).norm() < Scalar(1.99)) in quaternion()
124 VERIFY_IS_APPROX( v2.normalized(),(q2.setFromTwoVectors(v1, v2)*v1).normalized()); in quaternion()
125 VERIFY_IS_APPROX( v1.normalized(),(q2.setFromTwoVectors(v1, v1)*v1).normalized()); in quaternion()
126 VERIFY_IS_APPROX(-v1.normalized(),(q2.setFromTwoVectors(v1,-v1)*v1).normalized()); in quaternion()
130 VERIFY_IS_APPROX( v3.normalized(),(q2.setFromTwoVectors(v1, v3)*v1).normalized()); in quaternion()
131 VERIFY_IS_APPROX(-v3.normalized(),(q2.setFromTwoVectors(v1,-v3)*v1).normalized()); in quaternion()
135 VERIFY_IS_APPROX( v2.normalized(),(Quaternionx::FromTwoVectors(v1, v2)*v1).normalized()); in quaternion()
[all …]
/external/swiftshader/src/Renderer/
DStream.hpp61 Stream &define(StreamType type, unsigned int count, bool normalized = false) in define()
65 this->normalized = normalized; in define()
70 Stream &define(const void *buffer, StreamType type, unsigned int count, bool normalized = false) in define()
75 this->normalized = normalized; in define()
89 normalized = false; in defaults()
101 bool normalized; member
/external/harfbuzz_ng/src/
Dhb-glib.cc258 gchar *normalized; in hb_glib_unicode_compose() local
264 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC); in hb_glib_unicode_compose()
265 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_compose()
270 *ab = g_utf8_get_char (normalized); in hb_glib_unicode_compose()
276 g_free (normalized); in hb_glib_unicode_compose()
295 gchar *normalized; in hb_glib_unicode_decompose() local
300 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD); in hb_glib_unicode_decompose()
301 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_decompose()
306 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
310 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
[all …]
Dhb-icu.cc186 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local
199 …_normalize (unorm2_getNFCInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (normalized), &… in hb_icu_unicode_compose()
202 if (u_countChar32 (normalized, len) == 1) { in hb_icu_unicode_compose()
203 U16_GET_UNSAFE (normalized, 0, *ab); in hb_icu_unicode_compose()
246 UChar utf16[2], normalized[2 * 19/*HB_UNICODE_MAX_DECOMPOSITION_LEN*/ + 1]; in hb_icu_unicode_decompose() local
261 …_normalize (unorm2_getNFDInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (normalized), &… in hb_icu_unicode_decompose()
265 len = u_countChar32 (normalized, len); in hb_icu_unicode_decompose()
268 U16_GET_UNSAFE (normalized, 0, *a); in hb_icu_unicode_decompose()
273 U16_NEXT_UNSAFE (normalized, len, *a); in hb_icu_unicode_decompose()
274 U16_NEXT_UNSAFE (normalized, len, *b); in hb_icu_unicode_decompose()
[all …]
/external/angle/src/libANGLE/renderer/
Dcopyvertex.inc.h183 bool normalized,
203 if (normalized) in CopyToFloatVertexData()
303 template <bool isSigned, bool normalized, bool toFloat, bool toHalf>
320 if (normalized) in CopyPackedRGB()
339 if (normalized) in CopyPackedRGB()
378 template <bool isSigned, bool normalized, bool toFloat, bool toHalf>
388 if (normalized) in CopyPackedAlpha()
431 if (normalized) in CopyPackedAlpha()
482 template <bool isSigned, bool normalized, bool toFloat, bool toHalf>
504 priv::CopyPackedRGB<isSigned, normalized, toFloat, toHalf>( in CopyXYZ10W2ToXYZWFloatVertexData()
[all …]
Dcopyvertex.h47 bool normalized,
58 template <bool isSigned, bool normalized, bool toFloat, bool toHalf>
64 template <bool isSigned, bool normalized, bool toHalf>
70 template <bool isSigned, bool normalized, bool toHalf>
/external/libtextclassifier/native/utils/tflite/
Dstring_projection.cc213 std::string normalized(input_ptr, std::min(len, max_input)); in Normalize() local
217 normalized = ContractToken(normalized.data(), normalized.length(), 1); in Normalize()
221 normalized = ContractToken(normalized.data(), normalized.length(), 2); in Normalize()
225 normalized = ContractToken(normalized.data(), normalized.length(), 3); in Normalize()
230 normalized = NormalizeInternal(normalized.data(), normalized.length()); in Normalize()
232 return normalized; in Normalize()
247 std::string normalized; in NormalizeInternal() local
248 normalized.reserve(len * 2); in NormalizeInternal()
253 if (i > 0 && input_ptr[i - 1] != ' ' && normalized.back() != ' ') { in NormalizeInternal()
254 normalized.append(" "); in NormalizeInternal()
[all …]
/external/toolchain-utils/android_bench_suite/
Dfix_skia_results.py77 normalized = [float(t) * ms_mul / mul for t in ms]
78 average = sum(normalized) / len(normalized)
79 if all(n > 0.1 for n in normalized) and average >= 1:
80 return name, normalized
82 normalized = [float(t) * ms_mul for t in ms]
83 return 'ns', normalized
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DFCDIterCollationIterator.java85 pos != normalized.length()) { in nextCodePoint()
86 c = normalized.codePointAt(pos); in nextCodePoint()
139 c = normalized.codePointBefore(pos); in previousCodePoint()
175 pos != normalized.length()) { in handleNextCE32()
176 c = normalized.charAt(pos++); in handleNextCE32()
196 assert(pos < normalized.length()); in handleGetTrailSurrogate()
198 if(Character.isLowSurrogate(trail = normalized.charAt(pos))) { ++pos; } in handleGetTrailSurrogate()
227 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward()
386 pos = normalized.length(); in previousSegment()
403 if(normalized == null) { in normalize()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DFCDIterCollationIterator.java87 pos != normalized.length()) { in nextCodePoint()
88 c = normalized.codePointAt(pos); in nextCodePoint()
141 c = normalized.codePointBefore(pos); in previousCodePoint()
177 pos != normalized.length()) { in handleNextCE32()
178 c = normalized.charAt(pos++); in handleNextCE32()
198 assert(pos < normalized.length()); in handleGetTrailSurrogate()
200 if(Character.isLowSurrogate(trail = normalized.charAt(pos))) { ++pos; } in handleGetTrailSurrogate()
229 (state.compareTo(State.IN_NORM_ITER_AT_LIMIT) >= 0 && pos == normalized.length())); in switchToForward()
388 pos = normalized.length(); in previousSegment()
405 if(normalized == null) { in normalize()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_normalize_cubemap_coords.c64 nir_ssa_def *normalized = nir_fmul(b, orig_coord, nir_frcp(b, norm)); in normalize_cubemap_coords_block() local
70 normalized = nir_vec4(b, in normalize_cubemap_coords_block()
71 nir_channel(b, normalized, 0), in normalize_cubemap_coords_block()
72 nir_channel(b, normalized, 1), in normalize_cubemap_coords_block()
73 nir_channel(b, normalized, 2), in normalize_cubemap_coords_block()
79 nir_src_for_ssa(normalized)); in normalize_cubemap_coords_block()
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DUriPatternType.java79 String normalized = ServletUtils.normalizePath(literal); in ServletStyleUriPatternMatcher() local
81 normalized = "*" + normalized; in ServletStyleUriPatternMatcher()
83 normalized = normalized + "*"; in ServletStyleUriPatternMatcher()
85 if (!pattern.equals(normalized)) { in ServletStyleUriPatternMatcher()
90 + normalized in ServletStyleUriPatternMatcher()
/external/skqp/tests/
DSRGBTest.cpp16 for (int normalized = 0; normalized < 2; normalized++) { in DEF_TEST() local
33 linearize.apply(&p, !!normalized); in DEF_TEST()
34 reencode .apply(&p, !!normalized); in DEF_TEST()
83 bool normalized) { in test_roundtripping() argument
111 linearize.apply(&p, normalized); in test_roundtripping()
112 reencode .apply(&p, normalized); in test_roundtripping()
/external/angle/src/libANGLE/renderer/d3d/d3d9/
Dformatutils9.cpp411 template <GLenum GLtype, bool normalized>
454 template <bool normalized>
455 struct VertexTypeMapping<GL_FIXED, normalized> : VertexTypeMappingBase<D3DVT_FLOAT>
457 template <bool normalized>
458 struct VertexTypeMapping<GL_FLOAT, normalized> : VertexTypeMappingBase<D3DVT_FLOAT>
467 template <GLenum fromType, bool normalized, unsigned int toType>
487 template <class T, bool normalized>
499 template <class T, bool normalized>
500 struct DefaultVertexValues : DefaultVertexValuesStage2<T, normalized>
502 template <bool normalized>
[all …]
/external/angle/src/libANGLE/
DvalidationGL33_autogen.h76 GLboolean normalized,
81 GLboolean normalized,
86 GLboolean normalized,
91 GLboolean normalized,
96 GLboolean normalized,
101 GLboolean normalized,
106 GLboolean normalized,
111 GLboolean normalized,
DContext_gl_3_autogen.h67 void vertexAttribP1ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); \
68 void vertexAttribP1uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); \
69 void vertexAttribP2ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); \
70 void vertexAttribP2uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); \
71 void vertexAttribP3ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); \
72 void vertexAttribP3uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); \
73 void vertexAttribP4ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); \
74 void vertexAttribP4uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); \
/external/deqp/framework/delibs/debase/
DdeInt32.c152 deUint32 normalized = (deUint32)a << shift; /* Highest bit is always 1. */ in deRcp32() local
153 …int lookupNdx = (normalized >> (31 - RCP_LUT_BITS)) & ((1<<RCP_LUT_BITS)-1); /* Discard high bit… in deRcp32()
165 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
169 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DArchHandler.h119 virtual bool isPairedReloc(const normalized::Relocation &) = 0;
137 getReferenceInfo(const normalized::Relocation &reloc,
152 getPairReferenceInfo(const normalized::Relocation &reloc1,
153 const normalized::Relocation &reloc2,
194 normalized::Relocations&) = 0;
304 static RelocPattern relocPattern(const normalized::Relocation &reloc);
306 static normalized::Relocation relocFromPattern(RelocPattern pattern);
308 static void appendReloc(normalized::Relocations &relocs, uint32_t offset,
/external/libchrome/base/i18n/
Dicu_string_conversions.cc209 icu::UnicodeString normalized(utf16.data(), utf16_length); in ConvertToUtf8AndNormalize() local
211 normalizer->spanQuickCheckYes(normalized, status); in ConvertToUtf8AndNormalize()
213 icu::UnicodeString un_normalized(normalized, normalized_prefix_length); in ConvertToUtf8AndNormalize()
214 normalized.truncate(normalized_prefix_length); in ConvertToUtf8AndNormalize()
215 normalizer->normalizeSecondAndAppend(normalized, un_normalized, status); in ConvertToUtf8AndNormalize()
219 normalized.toUTF8String(*result); in ConvertToUtf8AndNormalize()
/external/icu/icu4c/source/i18n/
Dnortrans.cpp138 UnicodeString normalized; in handleTransliterate() local
156 fNorm2.normalize(segment, normalized, errorCode); in handleTransliterate()
160 if(segment != normalized) { in handleTransliterate()
162 text.handleReplaceBetween(prev, start, normalized); in handleTransliterate()
165 int32_t delta = normalized.length() - (start - prev); in handleTransliterate()
Duitercollationiterator.cpp133 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in handleNextCE32()
134 c = normalized[pos++]; in handleNextCE32()
154 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate()
156 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate()
194 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in nextCodePoint()
195 c = normalized.char32At(pos); in nextCodePoint()
248 c = normalized.char32At(pos - 1); in previousCodePoint()
279 (state >= IN_NORM_ITER_AT_LIMIT && pos == normalized.length())); in switchToForward()
424 pos = normalized.length(); in previousSegment()
444 nfcImpl.decompose(s, normalized, errorCode); in normalize()
/external/libchrome/ui/gfx/geometry/
Dquaternion.cc28 Vector3dF normalized = axis; in Quaternion() local
29 normalized.Scale(1.0 / length); in Quaternion()
33 x_ = normalized.x() * s; in Quaternion()
34 y_ = normalized.y() * s; in Quaternion()
35 z_ = normalized.z() * s; in Quaternion()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dutil.cc187 cl_channel_type DataTypeToChannelType(DataType type, bool normalized) { in DataTypeToChannelType() argument
194 return normalized ? CL_SNORM_INT8 : CL_SIGNED_INT8; in DataTypeToChannelType()
196 return normalized ? CL_UNORM_INT8 : CL_UNSIGNED_INT8; in DataTypeToChannelType()
198 return normalized ? CL_SNORM_INT16 : CL_SIGNED_INT16; in DataTypeToChannelType()
200 return normalized ? CL_UNORM_INT16 : CL_UNSIGNED_INT16; in DataTypeToChannelType()

12345678910>>...27