diff --git a/compiler-rt/lib/builtins/int_div_impl.inc b/compiler-rt/lib/builtins/int_div_impl.inc --- a/compiler-rt/lib/builtins/int_div_impl.inc +++ b/compiler-rt/lib/builtins/int_div_impl.inc @@ -1,4 +1,16 @@ -#define clz(a) (sizeof(a) == 8 ? __builtin_clzll(a) : __builtin_clz(a)) +//===----- int_div_impl.inc - integer division --------------------*- C -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file implements helpers for udivXi3 and umodXi3. +// +//===----------------------------------------------------------------------===// + +#define clz(a) (sizeof(a) == sizeof(unsigned long long) ? __builtin_clzll(a) : __builtin_clz(a)) // Adapted from Figure 3-40 of The PowerPC Compiler Writer's Guide static __inline fixuint_t __udivXi3(fixuint_t n, fixuint_t d) {