]> granicus.if.org Git - clang/commitdiff
Fixing a typo in the documented __builtin_convertvector example.
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Tue, 2 Sep 2014 19:24:14 +0000 (19:24 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Tue, 2 Sep 2014 19:24:14 +0000 (19:24 +0000)
  "vf[0]" ==> "vs[0]"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216935 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LanguageExtensions.rst

index 26c1418cb61f5f2fa71940cff33e5fb01c4dbad0..dc4e4844dbdb821cf67f8bc49be7c964221d670c 100644 (file)
@@ -1354,7 +1354,7 @@ type must have the same number of elements.
   // 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**: