Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp

Issue 2663983003: Add clang build fix for MSA (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2009 Torch Mobile, Inc. 3 * Copyright (C) 2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 double b4 = m[3][1]; 156 double b4 = m[3][1];
157 double c4 = m[3][2]; 157 double c4 = m[3][2];
158 double d4 = m[3][3]; 158 double d4 = m[3][3];
159 159
160 return a1 * determinant3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4) - 160 return a1 * determinant3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4) -
161 b1 * determinant3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4) + 161 b1 * determinant3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4) +
162 c1 * determinant3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4) - 162 c1 * determinant3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4) -
163 d1 * determinant3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4); 163 d1 * determinant3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4);
164 } 164 }
165 165
166 #if !CPU(ARM64) 166 #if !CPU(ARM64) && !HAVE(MIPS_MSA_INTRINSICS)
167 // adjoint( original_matrix, inverse_matrix ) 167 // adjoint( original_matrix, inverse_matrix )
168 // 168 //
169 // calculate the adjoint of a 4x4 matrix 169 // calculate the adjoint of a 4x4 matrix
170 // 170 //
171 // Let a denote the minor determinant of matrix A obtained by 171 // Let a denote the minor determinant of matrix A obtained by
172 // ij 172 // ij
173 // 173 //
174 // deleting the ith row and jth column from A. 174 // deleting the ith row and jth column from A.
175 // 175 //
176 // i+j 176 // i+j
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 decomposition.translateZ, decomposition.scaleX, decomposition.scaleY, 1933 decomposition.translateZ, decomposition.scaleX, decomposition.scaleY,
1934 decomposition.scaleZ, decomposition.skewXY, decomposition.skewXZ, 1934 decomposition.scaleZ, decomposition.skewXY, decomposition.skewXZ,
1935 decomposition.skewYZ, decomposition.quaternionX, 1935 decomposition.skewYZ, decomposition.quaternionX,
1936 decomposition.quaternionY, decomposition.quaternionZ, 1936 decomposition.quaternionY, decomposition.quaternionZ,
1937 decomposition.quaternionW, decomposition.perspectiveX, 1937 decomposition.quaternionW, decomposition.perspectiveX,
1938 decomposition.perspectiveY, decomposition.perspectiveZ, 1938 decomposition.perspectiveY, decomposition.perspectiveZ,
1939 decomposition.perspectiveW); 1939 decomposition.perspectiveW);
1940 } 1940 }
1941 1941
1942 } // namespace blink 1942 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698