Skip to content

Commit

Permalink
Change and add comments for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
overmighty committed Aug 26, 2024
1 parent 2f0d352 commit b22f8ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libc/src/math/generic/log2f16.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- Implementation of log2f16 function --------------------------------===//
//===-- Half-precision log2(x) function -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down Expand Up @@ -30,6 +30,7 @@ static constexpr size_t N_LOG2F16_EXCEPTS = 9;

static constexpr fputil::ExceptValues<float16, N_LOG2F16_EXCEPTS>
LOG2F16_EXCEPTS = {{
// (input, RZ output, RU offset, RD offset, RN offset)
#ifndef LIBC_TARGET_CPU_HAS_FMA
// x = 0x1.224p-1, log2f16(x) = -0x1.a34p-1 (RZ)
{0x3889U, 0xba8dU, 0U, 1U, 0U},
Expand Down

0 comments on commit b22f8ba

Please sign in to comment.