// Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. // // This file is part of the AMD Render Pipeline Shaders SDK which is // released under the AMD INTERNAL EVALUATION LICENSE. // // See file LICENSE.RTF for full license details. int main() { unsigned int a = 0x42; unsigned int b = __builtin_clz(a); unsigned int c = __builtin_ctz(b); unsigned int d = __builtin_clzll(a); unsigned int e = __builtin_ctzll(b); return (int)(a + b + c + d + e); }