|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Ian Ollmann wrote:
Accelerate.framework provides vector log and exp functionality. See vfp.h.
vdivf C = A ÷ B vsqrtf B = √A vrsqrtf B = 1/√A
vatan2f Computes the arc tangent of y/x in [-pi,pi] using the sign of both arguments to determine the quadrant of the computed value.
New for Tiger is a faster one that operates on long arrays, part of vForce.
vForce could use some better advertising, too :-)
/* Set z[i] to y[i]/x[i], for i=0,..,n-1 */ void vvdivf (...); void vvdiv (...);
/* Set y[i] to the exponential function of x[i], for i=0,..,n-1 */ void vvexpf (...); void vvexp (...);
/* Set z[i] to the arctangent of y[i]/x[i], for i=0,..,n-1 */ void vvatan2f (...); void vvatan2 (...);
_______________________________________________ Do not post admin requests to the list. They will be ignored. PerfOptimization-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.