HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VM_AltivecFunc.h File Reference
#include "VM_API.h"
#include <SYS/SYS_Types.h>
#include <altivec.h>
+ Include dependency graph for VM_AltivecFunc.h:

Go to the source code of this file.

Macros

#define CPU_HAS_SIMD_INSTR   1
 
#define VM_ALTIVEC_STYLE   1
 
#define VM_ALTIVEC_VECTOR   1
 
#define V4SF(A)   (v4sf)A
 
#define V4SI(A)   (v4si)A
 
#define V4SF_CONST(val)   (vector float){val,val,val,val}
 
#define V4SI_CONST(val)   (vector int){val,val,val,val}
 
#define VM_SPLATS   vm_splats
 
#define VM_CMPLT   (v4si)vec_cmplt
 
#define VM_CMPLE   (v4si)vm_vec_cmple
 
#define VM_CMPGT   (v4si)vec_cmpgt
 
#define VM_CMPGE   (v4si)vm_vec_cmpge
 
#define VM_CMPEQ   (v4si)vec_cmpeq
 
#define VM_CMPNE   (v4si)vm_vec_cmpneq
 
#define VM_ICMPLT   (v4si)vec_cmplt
 
#define VM_ICMPGT   (v4si)vec_cmpgt
 
#define VM_ICMPEQ   (v4si)vec_cmpeq
 
#define VM_IADD   vec_add
 
#define VM_ISUB   vec_sub
 
#define VM_ADD   vec_add
 
#define VM_SUB   vec_sub
 
#define VM_MUL   vm_vec_mul
 
#define VM_DIV   vm_vec_qdiv
 
#define VM_SQRT   vm_vec_qsqrt
 
#define VM_ISQRT   vec_rsqrte
 
#define VM_INVERT   vm_vec_reciprocal
 
#define VM_ABS   vec_abs
 
#define VM_FDIV   vm_vec_fdiv
 
#define VM_FSQRT   vm_vec_fsqrt
 
#define VM_NEG   vm_vec_negate
 
#define VM_MADD   vec_madd
 
#define VM_MIN   vec_min
 
#define VM_MAX   vec_max
 
#define VM_AND   vec_and
 
#define VM_ANDNOT   vm_vec_andnot
 
#define VM_OR   vec_or
 
#define VM_XOR   vec_xor
 
#define VM_ALLBITS   vm_allbits
 
#define VM_SHUFFLE   vm_shuffle
 
#define VM_P_FLOOR()
 
#define VM_FLOOR   vm_vec_floor
 
#define VM_E_FLOOR()
 
#define VM_INT   vm_vec_intcast
 
#define VM_IFLOAT   vm_vec_floatcast
 

Typedefs

typedef vector float v4sf
 
typedef vector int v4si
 

Macro Definition Documentation

#define CPU_HAS_SIMD_INSTR   1

Definition at line 18 of file VM_AltivecFunc.h.

#define V4SF (   A)    (v4sf)A

Definition at line 25 of file VM_AltivecFunc.h.

#define V4SF_CONST (   val)    (vector float){val,val,val,val}

Definition at line 28 of file VM_AltivecFunc.h.

#define V4SI (   A)    (v4si)A

Definition at line 26 of file VM_AltivecFunc.h.

#define V4SI_CONST (   val)    (vector int){val,val,val,val}

Definition at line 29 of file VM_AltivecFunc.h.

#define VM_ABS   vec_abs

Definition at line 229 of file VM_AltivecFunc.h.

#define VM_ADD   vec_add

Definition at line 222 of file VM_AltivecFunc.h.

#define VM_ALLBITS   vm_allbits

Definition at line 244 of file VM_AltivecFunc.h.

#define VM_ALTIVEC_STYLE   1

Definition at line 19 of file VM_AltivecFunc.h.

#define VM_ALTIVEC_VECTOR   1

Definition at line 20 of file VM_AltivecFunc.h.

#define VM_AND   vec_and

Definition at line 239 of file VM_AltivecFunc.h.

#define VM_ANDNOT   vm_vec_andnot

Definition at line 240 of file VM_AltivecFunc.h.

#define VM_CMPEQ   (v4si)vec_cmpeq

Definition at line 211 of file VM_AltivecFunc.h.

#define VM_CMPGE   (v4si)vm_vec_cmpge

Definition at line 210 of file VM_AltivecFunc.h.

#define VM_CMPGT   (v4si)vec_cmpgt

Definition at line 209 of file VM_AltivecFunc.h.

#define VM_CMPLE   (v4si)vm_vec_cmple

Definition at line 208 of file VM_AltivecFunc.h.

#define VM_CMPLT   (v4si)vec_cmplt

Definition at line 207 of file VM_AltivecFunc.h.

#define VM_CMPNE   (v4si)vm_vec_cmpneq

Definition at line 212 of file VM_AltivecFunc.h.

#define VM_DIV   vm_vec_qdiv

Definition at line 225 of file VM_AltivecFunc.h.

#define VM_E_FLOOR ( )

Definition at line 268 of file VM_AltivecFunc.h.

#define VM_FDIV   vm_vec_fdiv

Definition at line 231 of file VM_AltivecFunc.h.

#define VM_FLOOR   vm_vec_floor

Definition at line 267 of file VM_AltivecFunc.h.

#define VM_FSQRT   vm_vec_fsqrt

Definition at line 232 of file VM_AltivecFunc.h.

#define VM_IADD   vec_add

Definition at line 218 of file VM_AltivecFunc.h.

#define VM_ICMPEQ   (v4si)vec_cmpeq

Definition at line 216 of file VM_AltivecFunc.h.

#define VM_ICMPGT   (v4si)vec_cmpgt

Definition at line 215 of file VM_AltivecFunc.h.

#define VM_ICMPLT   (v4si)vec_cmplt

Definition at line 214 of file VM_AltivecFunc.h.

#define VM_IFLOAT   vm_vec_floatcast

Definition at line 273 of file VM_AltivecFunc.h.

#define VM_INT   vm_vec_intcast

Definition at line 270 of file VM_AltivecFunc.h.

#define VM_INVERT   vm_vec_reciprocal

Definition at line 228 of file VM_AltivecFunc.h.

#define VM_ISQRT   vec_rsqrte

Definition at line 227 of file VM_AltivecFunc.h.

#define VM_ISUB   vec_sub

Definition at line 219 of file VM_AltivecFunc.h.

#define VM_MADD   vec_madd

Definition at line 234 of file VM_AltivecFunc.h.

#define VM_MAX   vec_max

Definition at line 237 of file VM_AltivecFunc.h.

#define VM_MIN   vec_min

Definition at line 236 of file VM_AltivecFunc.h.

#define VM_MUL   vm_vec_mul

Definition at line 224 of file VM_AltivecFunc.h.

#define VM_NEG   vm_vec_negate

Definition at line 233 of file VM_AltivecFunc.h.

#define VM_OR   vec_or

Definition at line 241 of file VM_AltivecFunc.h.

#define VM_P_FLOOR ( )

Definition at line 266 of file VM_AltivecFunc.h.

#define VM_SHUFFLE   vm_shuffle

Definition at line 246 of file VM_AltivecFunc.h.

#define VM_SPLATS   vm_splats

Definition at line 206 of file VM_AltivecFunc.h.

#define VM_SQRT   vm_vec_qsqrt

Definition at line 226 of file VM_AltivecFunc.h.

#define VM_SUB   vec_sub

Definition at line 223 of file VM_AltivecFunc.h.

#define VM_XOR   vec_xor

Definition at line 242 of file VM_AltivecFunc.h.

Typedef Documentation

typedef vector float v4sf

Definition at line 22 of file VM_AltivecFunc.h.

typedef vector int v4si

Definition at line 23 of file VM_AltivecFunc.h.