Home
last modified time | relevance | path

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

12345678910>>...14

/external/eigen/test/
Dgeo_quaternion.cpp80 q1 = AngleAxisx(a, v0.normalized()); in quaternion()
81 q2 = AngleAxisx(a, v1.normalized()); in quaternion()
112 && (aa.axis() - v1.normalized()).norm() < 1.99 in quaternion()
113 && (aa.axis() + v1.normalized()).norm() < 1.99) in quaternion()
119 VERIFY_IS_APPROX( v2.normalized(),(q2.setFromTwoVectors(v1, v2)*v1).normalized()); in quaternion()
120 VERIFY_IS_APPROX( v1.normalized(),(q2.setFromTwoVectors(v1, v1)*v1).normalized()); in quaternion()
121 VERIFY_IS_APPROX(-v1.normalized(),(q2.setFromTwoVectors(v1,-v1)*v1).normalized()); in quaternion()
125 VERIFY_IS_APPROX( v3.normalized(),(q2.setFromTwoVectors(v1, v3)*v1).normalized()); in quaternion()
126 VERIFY_IS_APPROX(-v3.normalized(),(q2.setFromTwoVectors(v1,-v3)*v1).normalized()); in quaternion()
130 VERIFY_IS_APPROX( v2.normalized(),(Quaternionx::FromTwoVectors(v1, v2)*v1).normalized()); in quaternion()
[all …]
/external/chromium_org/third_party/harfbuzz-ng/src/
Dhb-icu.cc189 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose()
205 if (u_countChar32 (normalized, len) == 1) { in hb_icu_unicode_compose()
206 U16_GET_UNSAFE (normalized, 0, *ab); in hb_icu_unicode_compose()
248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local
263 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose()
267 len = u_countChar32 (normalized, len); in hb_icu_unicode_decompose()
270 U16_GET_UNSAFE (normalized, 0, *a); in hb_icu_unicode_decompose()
275 U16_NEXT_UNSAFE (normalized, len, *a); in hb_icu_unicode_decompose()
276 U16_NEXT_UNSAFE (normalized, len, *b); in hb_icu_unicode_decompose()
[all …]
Dhb-glib.cc254 gchar *normalized; in hb_glib_unicode_compose() local
260 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC); in hb_glib_unicode_compose()
261 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_compose()
266 *ab = g_utf8_get_char (normalized); in hb_glib_unicode_compose()
272 g_free (normalized); in hb_glib_unicode_compose()
291 gchar *normalized; in hb_glib_unicode_decompose() local
296 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD); in hb_glib_unicode_decompose()
297 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_decompose()
302 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
306 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
[all …]
/external/harfbuzz_ng/src/
Dhb-icu.cc189 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose()
205 if (u_countChar32 (normalized, len) == 1) { in hb_icu_unicode_compose()
206 U16_GET_UNSAFE (normalized, 0, *ab); in hb_icu_unicode_compose()
248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local
263 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose()
267 len = u_countChar32 (normalized, len); in hb_icu_unicode_decompose()
270 U16_GET_UNSAFE (normalized, 0, *a); in hb_icu_unicode_decompose()
275 U16_NEXT_UNSAFE (normalized, len, *a); in hb_icu_unicode_decompose()
276 U16_NEXT_UNSAFE (normalized, len, *b); in hb_icu_unicode_decompose()
[all …]
Dhb-glib.cc254 gchar *normalized; in hb_glib_unicode_compose() local
260 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC); in hb_glib_unicode_compose()
261 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_compose()
266 *ab = g_utf8_get_char (normalized); in hb_glib_unicode_compose()
272 g_free (normalized); in hb_glib_unicode_compose()
291 gchar *normalized; in hb_glib_unicode_decompose() local
296 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD); in hb_glib_unicode_decompose()
297 len = g_utf8_strlen (normalized, -1); in hb_glib_unicode_decompose()
302 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
306 *a = g_utf8_get_char (normalized); in hb_glib_unicode_decompose()
[all …]
/external/chromium_org/chromeos/network/onc/
Donc_normalizer.cc39 scoped_ptr<base::DictionaryValue> normalized = in MapObject() local
42 if (normalized.get() == NULL) in MapObject()
46 normalized->RemoveWithoutPathExpansion(::onc::kRecommended, NULL); in MapObject()
49 NormalizeCertificate(normalized.get()); in MapObject()
51 NormalizeEAP(normalized.get()); in MapObject()
53 NormalizeEthernet(normalized.get()); in MapObject()
55 NormalizeIPsec(normalized.get()); in MapObject()
57 NormalizeNetworkConfiguration(normalized.get()); in MapObject()
59 NormalizeOpenVPN(normalized.get()); in MapObject()
61 NormalizeProxySettings(normalized.get()); in MapObject()
[all …]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dnormalize_utf8.h29 string normalized; in NormalizeDecimalDigits() local
40 normalized.append(utf8, len); in NormalizeDecimalDigits()
42 normalized.push_back('0' + digitValue); in NormalizeDecimalDigits()
45 return normalized; in NormalizeDecimalDigits()
/external/chromium_org/chrome/browser/ui/cocoa/content_settings/
Dcollected_cookies_mac_unittest.mm49 NSArray* normalized = @[ one, three ];
52 EXPECT_NSEQ(normalized, actual);
55 normalized = @[ two, three1, one ];
58 EXPECT_NSEQ(normalized, actual);
61 normalized = @[ one ];
64 EXPECT_NSEQ(normalized, actual);
/external/deqp/framework/delibs/debase/
DdeInt32.c132 deUint32 normalized = (deUint32)a << shift; /* Highest bit is always 1. */ in deRcp32() local
133 …int lookupNdx = (normalized >> (31 - RCP_LUT_BITS)) & ((1<<RCP_LUT_BITS)-1); /* Discard high bit… in deRcp32()
145 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
149 tmp = deSafeMuluAsr32(result, normalized, 31); in deRcp32()
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/
Dcopyvertex.inl60 template <typename T, size_t componentCount, bool normalized>
72 if (normalized)
95 template <bool isSigned, bool normalized, bool toFloat>
117 if (normalized)
140 if (normalized)
174 template <bool isSigned, bool normalized, bool toFloat>
182 if (normalized)
207 if (normalized)
262 template <bool isSigned, bool normalized, bool toFloat>
281 …priv::CopyPackedRGB<isSigned, normalized, toFloat>( (packedValue >> redShift) & rgbMask, offs…
[all …]
/external/chromium_org/third_party/cld/encodings/compact_lang_det/win/
Dcld_unicodetext.cc20 icu::UnicodeString normalized; in NormalizeText() local
22 icu::Normalizer::normalize(source, UNORM_NFC, 0, normalized, status); in NormalizeText()
25 normalized.toLower(); in NormalizeText()
32 normalized.toUTF8(sink); in NormalizeText()
/external/chromium_org/chrome/common/extensions/docs/server2/
Dpath_canonicalizer.py13 normalized = file_name
15 normalized = posixpath.splitext(file_name)[0]
16 normalized = normalized.replace('.', '').replace('-', '').replace('_', '')
17 return normalized.lower()
/external/chromium_org/third_party/icu/source/i18n/
Dnortrans.cpp136 UnicodeString normalized; in handleTransliterate() local
154 fNorm2.normalize(segment, normalized, errorCode); in handleTransliterate()
158 if(segment != normalized) { in handleTransliterate()
160 text.handleReplaceBetween(prev, start, normalized); in handleTransliterate()
163 int32_t delta = normalized.length() - (start - prev); in handleTransliterate()
/external/icu/icu4c/source/i18n/
Dnortrans.cpp136 UnicodeString normalized; in handleTransliterate() local
154 fNorm2.normalize(segment, normalized, errorCode); in handleTransliterate()
158 if(segment != normalized) { in handleTransliterate()
160 text.handleReplaceBetween(prev, start, normalized); in handleTransliterate()
163 int32_t delta = normalized.length() - (start - prev); in handleTransliterate()
Duitercollationiterator.cpp131 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in handleNextCE32()
132 c = normalized[pos++]; in handleNextCE32()
152 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate()
154 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate()
192 } else if(state >= IN_NORM_ITER_AT_LIMIT && pos != normalized.length()) { in nextCodePoint()
193 c = normalized.char32At(pos); in nextCodePoint()
246 c = normalized.char32At(pos - 1); in previousCodePoint()
277 (state >= IN_NORM_ITER_AT_LIMIT && pos == normalized.length())); in switchToForward()
422 pos = normalized.length(); in previousSegment()
442 nfcImpl.decompose(s, normalized, errorCode); in normalize()
Dutf8collationiterator.cpp211 } else if(state == IN_NORMALIZED && pos != normalized.length()) { in handleNextCE32()
212 c = normalized[pos++]; in handleNextCE32()
248 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate()
250 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate()
292 } else if(state == IN_NORMALIZED && pos != normalized.length()) { in nextCodePoint()
293 c = normalized.char32At(pos); in nextCodePoint()
331 c = normalized.char32At(pos - 1); in previousCodePoint()
362 (state == IN_NORMALIZED && pos == normalized.length())); in switchToForward()
503 pos = normalized.length(); in previousSegment()
523 nfcImpl.decompose(s, normalized, errorCode); in normalize()
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d9/
Dformatutils9.cpp406 template <GLenum GLtype, bool normalized> struct VertexTypeMapping { };
423 template <bool normalized> struct VertexTypeMapping<GL_FIXED, normalized> : VertexTypeMappingBase…
424 template <bool normalized> struct VertexTypeMapping<GL_FLOAT, normalized> : VertexTypeMappingBase…
431 template <GLenum fromType, bool normalized, unsigned int toType>
443 template <class T, bool normalized> struct DefaultVertexValuesStage2 { };
449 template <class T, bool normalized> struct DefaultVertexValues : DefaultVertexValuesStage2<T, norma…
450 template <bool normalized> struct DefaultVertexValues<float, normalized> : SimpleDefaultValues<floa…
460 template <GLenum fromType, bool normalized, int size, template <class T> class PreferenceRule>
463 … WidenRule<PreferenceRule< VertexTypeMapping<fromType, normalized> >::type, size>,
465 normalized,
[all …]
/external/eigen/test/eigen2/
Deigen2_geometry.cpp51 m << v0.normalized(), in geometry()
52 (v0.cross(v1)).normalized(), in geometry()
53 (v0.cross(v1).cross(v0)).normalized(); in geometry()
70 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in geometry()
73 m = AngleAxisx(a, v0.normalized()).toRotationMatrix().adjoint(); in geometry()
74 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in geometry()
75 VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxisx(a, v0.normalized()) * m); in geometry()
77 q1 = AngleAxisx(a, v0.normalized()); in geometry()
78 q2 = AngleAxisx(a, v1.normalized()); in geometry()
115 VERIFY_IS_APPROX(v2.normalized(),(q2.setFromTwoVectors(v1,v2)*v1).normalized()); in geometry()
[all …]
Deigen2_geometry_with_eigen2_prefix.cpp53 m << v0.normalized(), in geometry()
54 (v0.cross(v1)).normalized(), in geometry()
55 (v0.cross(v1).cross(v0)).normalized(); in geometry()
72 VERIFY_IS_APPROX(v0, AngleAxisx(a, v0.normalized()) * v0); in geometry()
75 m = AngleAxisx(a, v0.normalized()).toRotationMatrix().adjoint(); in geometry()
76 VERIFY_IS_APPROX(Matrix3::Identity(), m * AngleAxisx(a, v0.normalized())); in geometry()
77 VERIFY_IS_APPROX(Matrix3::Identity(), AngleAxisx(a, v0.normalized()) * m); in geometry()
79 q1 = AngleAxisx(a, v0.normalized()); in geometry()
80 q2 = AngleAxisx(a, v1.normalized()); in geometry()
117 VERIFY_IS_APPROX(v2.normalized(),(q2.setFromTwoVectors(v1,v2)*v1).normalized()); in geometry()
[all …]
/external/eigen/unsupported/test/
Dalignedvector3.cpp45 VERIFY_IS_APPROX(f2.normalized(),r2.normalized()); in alignedvector3()
47 VERIFY_IS_APPROX((f2+f1).normalized(),(r2+r1).normalized()); in alignedvector3()
/external/chromium_org/cc/input/
Dpage_scale_animation.cc26 gfx::Vector2dF DenormalizeToViewport(const gfx::Vector2dF& normalized, in DenormalizeToViewport() argument
28 return gfx::ScaleVector2d(normalized, in DenormalizeToViewport()
119 gfx::Vector2dF normalized = NormalizeFromViewport( in InferTargetScrollOffsetFromStartAnchor() local
122 start_anchor_ - DenormalizeToViewport(normalized, TargetViewportSize()); in InferTargetScrollOffsetFromStartAnchor()
140 gfx::Vector2dF normalized = gfx::ScaleVector2d( in InferTargetAnchorFromScrollOffsets() local
143 target_scroll_offset_ + DenormalizeToViewport(normalized, in InferTargetAnchorFromScrollOffsets()
/external/chromium_org/third_party/skia/src/gpu/gl/
DGrGLVertexArray.cpp19 GrGLboolean normalized, in set() argument
32 array->fNormalized != normalized || in set()
40 normalized, in set()
46 array->fNormalized = normalized; in set()
/external/skia/src/gpu/gl/
DGrGLVertexArray.cpp19 GrGLboolean normalized, in set() argument
32 array->fNormalized != normalized || in set()
40 normalized, in set()
46 array->fNormalized = normalized; in set()
/external/chromium_org/third_party/mesa/src/src/mesa/vbo/
Dvbo_attrib_tmp.h159 #define ATTR_UI(val, type, normalized, attr, arg) do { \ argument
161 if (normalized) { \
167 if (normalized) { \
176 #define ATTR_UI_INDEX(val, type, normalized, index, arg) do { \ argument
178 ATTR_UI(val, (type), normalized, 0, (arg)); \
180 ATTR_UI(val, (type), normalized, VBO_ATTRIB_GENERIC0 + (index), (arg)); \
1022 TAG(VertexAttribP1ui)(GLuint index, GLenum type, GLboolean normalized, in TAG()
1026 ATTR_UI_INDEX(1, type, normalized, index, value); in TAG()
1030 TAG(VertexAttribP2ui)(GLuint index, GLenum type, GLboolean normalized, in TAG()
1034 ATTR_UI_INDEX(2, type, normalized, index, value); in TAG()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_attrib_tmp.h159 #define ATTR_UI(val, type, normalized, attr, arg) do { \ argument
161 if (normalized) { \
167 if (normalized) { \
176 #define ATTR_UI_INDEX(val, type, normalized, index, arg) do { \ argument
178 ATTR_UI(val, (type), normalized, 0, (arg)); \
180 ATTR_UI(val, (type), normalized, VBO_ATTRIB_GENERIC0 + (index), (arg)); \
1022 TAG(VertexAttribP1ui)(GLuint index, GLenum type, GLboolean normalized, in TAG()
1026 ATTR_UI_INDEX(1, type, normalized, index, value); in TAG()
1030 TAG(VertexAttribP2ui)(GLuint index, GLenum type, GLboolean normalized, in TAG()
1034 ATTR_UI_INDEX(2, type, normalized, index, value); in TAG()
[all …]

12345678910>>...14