Intrinsic Functions for Hitachi Microprocessors

The SH-4 microprocessor includes a number of functions that you can use intrinsically for faster programs. These functions aid mathematical computations. Programs that use intrinsic functions do not have the overhead of function calls, but may be larger because of the additional code created.

Note   These functions are not available as intrinsic functions for use with SH-3.

To replace functions with their intrinsic (inline) forms, use the /Oi - Generate Intrinsic Functions option or the #pragma intrinsic.

The following table shows SH-4 microprocessor assembly language functions implemented as intrinsic functions.

SH-4 instruction Description
_Convolve Compute the summation of two vectors
_Dot3dVW0 Computes the inner product of a pair of three or four-dimensional vectors with the "w" coordinate forced to 0.
_Dot3dVW1 Computes the inner product of a pair of three or four-dimensional vectors with the "w" coordinate forced to 1.
_Dot4dV Computes the inner product of a pair of four-dimensional vectors.
__fmac Multiply two float values and add to a third float value
_LoadMatrix Load a 4x4 matrix into the extended floating-point register bank
__movca Move with cache block allocation
_Multiply4dM Multiply a 4x4 matrix by a 4x4 matrix
__prefetch Load a 32-byte data block that begins at a 32-byte boundary to the cache
_SaveMatrix Store the extended floating-point register bank into a 4x4 matrix
_XDMultMatrix Multiply a 4x4 matrix by a 4x4 matrix
_XDXform3dV Multiply a three-dimensional vector by a 3x3 matrix
_XDXform4dV Multiply a four-dimensional vector by a 4x4 matrix
_Xform3dV Multiply a three-dimensional vector by a 3x3 matrix
_Xform4dV Multiply a four-dimensional vector by a 4x4 matrix

See Also

Common Intrinsic Functions | Microprocessor-specific Intrinsic Functions | Intrinsic Functions for ARM Microprocessors | Intrinsic Functions for MIPS Microprocessors | Hitachi Guide

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.