[android-developers] Bug in Renderscript API of the pown()???

2011-09-02 Thread Macotonalds
Hi, the function pown() in Renderscript may have bugs. //rs_cl.rsh _RS_RUNTIME float __attribute__((overloadable)) pown(float v, int p); _RS_RUNTIME float2 __attribute__((overloadable)) pown(float2 v, int2 p); _RS_RUNTIME float3 __attribute__((overloadable)) pown(float3 v, int3 p); _RS_RUNTIME

Re: [android-developers] Bug in Renderscript API of the pown()???

2011-09-02 Thread Macoto nalds
A reply to myself. When the second parameter of pown() is negative integers, returns are the NaN as follows. How does the pown() work??? //code snippet float4 f4 = {2.0f, 6.0f, 2.0f, 2.0f}; int4 i4 = {-1,1,-5,1}; float4 r4 = pown(f4,i4); rsDebug(r4 = ,