Rechercher une page de manuel
ldexp.3Cg
Langue: en
Version: 355525 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
ldexp - returns x times 2 rained to nSYNOPSIS
float ldexp(float x, float n); float1 ldexp(float1 x, float1 n); float2 ldexp(float2 x, float2 n); float3 ldexp(float3 x, float3 n); float4 ldexp(float4 x, float4 n);
half ldexp(half x, half n); half1 ldexp(half1 x, half1 n); half2 ldexp(half2 x, half2 n); half3 ldexp(half3 x, half3 n); half4 ldexp(half4 x, half4 n);
fixed ldexp(fixed x, fixed n); fixed1 ldexp(fixed1 x, fixed1 n); fixed2 ldexp(fixed2 x, fixed2 n); fixed3 ldexp(fixed3 x, fixed3 n); fixed4 ldexp(fixed4 x, fixed4 n);
PARAMETERS
- x
- Vector or scalar.
- n
- Vector or scalar for power with which to raise 2.
DESCRIPTION
ldexp returns x times 2 raised to the power n.REFERENCE IMPLEMENTATION
ldexp for float2 vectors x and n could be implemented as:float2 ldexp(float2 x, float2 n) { return x * exp2(n); }
PROFILE SUPPORT
ldexp is supported in all profiles but fp20.SEE ALSO
exp2, modf, powContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre