frexp - HLSL
Microsoft DirectX 9.0 SDK Update (October 2004)

frexp - HLSL


Returns the mantissa and exponent of x. The return value of the function is the mantissa, and the exponent is returned by exp. If x is 0, the function returns 0 for both the mantissa and the exponent.

Syntax

ret frexp(x, out exp)

Where:

NameIn/OutTemplate TypeComponent TypeSize
xinscalar, vector, or matrixfloatany
expinsame as input xfloatsame dimension(s) as input x
retoutsame as input xfloatsame dimension(s) as input x

Minimum Shader Version

This intrinsic function is supported in the following (or above) shader versions:

Vertex ShaderPixel Shader
vs_1_1ps_2_0


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.