C language function:firstbithigh sample codes

Search sample code in the internet.It is the result.


TITLE : Supported Features | Diligent Graphics
* firstbithigh( {int, int2, int3, int4, uint, uint2, uint3, uint4} ).......
http://diligentgraphics.com/diligent-engine/shader-converter/supported-features/


TITLE : DirectX-Graphics-Samples/ParticleTileCullingCS.hlsl at master Microsoft/DirectX-Graphics-Samples GitHub
uint NextPow2 = countbits(ParticleCountInBin) <= 1 ? ParticleCountInBin : (2 << firstbithigh(ParticleCountInBin));.......
http://github.com/Microsoft/DirectX-Graphics-Samples/blob/master/MiniEngine/Core/Shaders/ParticleTileCullingCS.hlsl
TITLE : Optimizing GPU occupancy and resource usage with large thread groups - GPUOpen
If you have more bools than can be accommodated in SGPRs, consider bit-packing 32 bools to a single VGPR. GCN has single-cycle bit-field extract/insert to manipulate bit fields quickly. In addition, you can use countbits() and firstbithigh() / firstbitlow() to do reductions and searching of bitfields. Binary prefix-sum can be implemented efficiently with countbits() , by masking previous bits and then counting........
http://gpuopen.com/optimizing-gpu-occupancy-resource-usage-large-thread-groups/
TITLE : firstbithigh function (Windows)
int firstbithigh(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : firstbithigh function (Windows)
int2 firstbithigh(int2 value);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : firstbithigh function (Windows)
int3 firstbithigh(int3 value);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : firstbithigh function (Windows)
int4 firstbithigh(int4 value);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : firstbithigh function (Windows)
uint firstbithigh(uint value);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : firstbithigh function (Windows)
uint2 firstbithigh(uint2 value);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : firstbithigh function (Windows)
uint3 firstbithigh(uint3 value);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : firstbithigh function (Windows)
uint4 firstbithigh(uint4 value);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ff471400(v=vs.85).aspx
TITLE : Shader model 5 0 and compute shader
10. Other Instructions FP32 to/from FP16 conversion uint f32tof16(float value); float f16tof32(uint value); fp16 stored in low 16 bits of uint Bit manipulation Returns the first occurrence of a set bit int firstbithigh(int value); int firstbitlow(int value); Reverse bit ordering uint reversebits(uint value); Useful for packing/compression code And morec.......
http://www.slideshare.net/zaywalker/shader-model-5-0-and-compute-shader
search Google

https://www.google.com/#q=firstbithigh