// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.
#include"lib/jxl/base/bits.h"
#include <cstddef> #include <cstdint>
#include"lib/jxl/testing.h"
namespace jxl { namespace {
TEST(BitsTest, TestNumZeroBits) { // Zero input is well-defined.
EXPECT_EQ(32u, Num0BitsAboveMS1Bit(0u));
EXPECT_EQ(64u, Num0BitsAboveMS1Bit(0ull));
EXPECT_EQ(32u, Num0BitsBelowLS1Bit(0u));
EXPECT_EQ(64u, Num0BitsBelowLS1Bit(0ull));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.