Sqr_32u64u

Computes the square of 32-bit words in the input array.

Syntax

IppStatus ippsSqr_32u64u(const Ipp32u *src, int n, Ipp64u *dst);

Parameters

src

Array of 32-bit words.

n

Input array size.

dst

Pointer to the result.

Description

This function is declared in the ippcp.h file. The function computes the square of each unsigned 32-bit long word in the input array. The result of the operation is stored in the array of 64-bit unsigned integers.

The following pseudocode represents this function:

dst[i] src[i] * src[i], where i = 0, 1, 2, ..., n -1.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or warning.

ippStsNullPtrErr

Indicates an error condition if any of the specified pointers is NULL.

ippStsLengthErr

Indicates an error condition if n is less than or equal to 0.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.