vec_ld

用途

从给定内存地址装入向量。

语法

d=vec_ld(a, b)

结果和参数类型

以下 描述 返回值和函数自变量的类型。

表 1. 函数返回值和自变量的数据类型(在 32 位方式下)
d a b
vector float int const vector float *
const float *
vector signed int const vector signed int *
const signed int *
vector unsigned int const vector unsigned int *
const unsigned int *
vector signed short const vector signed short *
const signed short *
vector unsigned short const vector unsigned short *
const unsigned short *
vector signed char const vector signed char *
const 已签名字符 *
vector unsigned char const vector unsigned char *
const unsigned char *
vector bool char const 向量 bool char *
vector bool int const 向量 bool int *
vector bool short const 向量 bool short *
向量像素 const 向量像素 *
表 2。 函数返回值和自变量的数据类型 (以 64 位方式)
d a b
vector unsigned int 有符号长整型 const 无符号长 *
vector signed int const 已签名的长整型 *
vector unsigned char const 向量无符号字符 *
const 无符号字符 *
vector signed char const 向量已签名字符 *
const 已签名字符 *
vector unsigned short const 向量无符号短 *
const 无符号短 *
vector signed short const 向量符号短 *
const 签名短 *
vector unsigned int const 向量无符号 int *
const 无符号 int *
vector signed int 已签名的 const 向量 int *
const 已签名 int *
vector float const 向量浮点 *
const 浮点 *
vector bool int const 向量 bool int *
vector bool char const 向量 bool char *
vector bool short const 向量 bool short *
向量像素 const 向量像素 *

结果值

a 的值将添加到 b指定的地址中,并且总和将截断为 16 个字节的倍数。 结果是从该地址开始的 16 字节内存的内容。