r216935 - Fixing a typo in the documented __builtin_convertvector example.
Yunzhong Gao
Yunzhong_Gao at playstation.sony.com
Tue Sep 2 12:24:14 PDT 2014
Author: ygao
Date: Tue Sep 2 14:24:14 2014
New Revision: 216935
URL: http://llvm.org/viewvc/llvm-project?rev=216935&view=rev
Log:
Fixing a typo in the documented __builtin_convertvector example.
"vf[0]" ==> "vs[0]"
Modified:
cfe/trunk/docs/LanguageExtensions.rst
Modified: cfe/trunk/docs/LanguageExtensions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.rst?rev=216935&r1=216934&r2=216935&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.rst (original)
+++ cfe/trunk/docs/LanguageExtensions.rst Tue Sep 2 14:24:14 2014
@@ -1354,7 +1354,7 @@ type must have the same number of elemen
// convert from a vector of 4 shorts to a vector of 4 floats.
__builtin_convertvector(vs, vector4float)
// equivalent to:
- (vector4float) { (float) vf[0], (float) vf[1], (float) vf[2], (float) vf[3] }
+ (vector4float) { (float) vs[0], (float) vs[1], (float) vs[2], (float) vs[3] }
**Description**:
More information about the cfe-commits
mailing list