mirror of
https://github.com/clang-retro/llvm.git
synced 2026-11-29 22:00:39 -08:00
As per TODOs added in https://github.com/llvm/llvm-project/pull/84035/commits/48b0bc837085a38ff1de33010d9222363f70238f.
21 lines
693 B
C++
21 lines
693 B
C++
//===-- Implementation of stdc_first_trailing_one_ui ----------------------===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "src/stdbit/stdc_first_trailing_one_ui.h"
|
|
|
|
#include "src/__support/common.h"
|
|
#include "src/__support/math_extras.h"
|
|
|
|
namespace LIBC_NAMESPACE {
|
|
|
|
LLVM_LIBC_FUNCTION(unsigned, stdc_first_trailing_one_ui, (unsigned value)) {
|
|
return static_cast<unsigned>(first_trailing_one(value));
|
|
}
|
|
|
|
} // namespace LIBC_NAMESPACE
|