How To Install libdivide-devel on Fedora 36

In this tutorial we learn how to install libdivide-devel in Fedora 36. libdivide-devel is Development files for libdivide

Introduction

In this tutorial we learn how to install libdivide-devel on Fedora 36.

What is libdivide-devel

This package contains a header-only C/C++ library for optimizing integer division. Integer division is one of the slowest instructions on most CPUs, e.g. on current x64 CPUs a 64-bit integer division has a latency of up to 90 clock cycles whereas a multiplication has a latency of only 3 clock cycles. libdivide allows you to replace expensive integer divsion instructions by a sequence of shift, add and multiply instructions that will calculate the integer division much faster. On current CPUs you can get a speedup of up to 10x for 64-bit integer division and a speedup of up to to 5x for 32-bit integer division when using libdivide. libdivide also supports SSE2, AVX2 and AVX512 vector division which provides an even larger speedup.

We can use yum or dnf to install libdivide-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libdivide-devel.

Install libdivide-devel on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libdivide-devel using dnf by running the following command:

sudo dnf -y install libdivide-devel

Install libdivide-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libdivide-devel using yum by running the following command:

sudo yum -y install libdivide-devel

How To Uninstall libdivide-devel on Fedora 36

To uninstall only the libdivide-devel package we can use the following command:

sudo dnf remove libdivide-devel

libdivide-devel Package Contents on Fedora 36

/usr/include/libdivide.h
/usr/lib/cmake/libdivide
/usr/lib/cmake/libdivide/libdivideConfig.cmake
/usr/lib/cmake/libdivide/libdivideConfigVersion.cmake
/usr/share/doc/libdivide-devel
/usr/share/doc/libdivide-devel/CHANGELOG.md
/usr/share/doc/libdivide-devel/README.md
/usr/share/doc/libdivide-devel/doc
/usr/share/doc/libdivide-devel/doc/C-API.md
/usr/share/doc/libdivide-devel/doc/CPP-API.md
/usr/share/doc/libdivide-devel/doc/divide_by_constants_codegen_reference.c
/usr/share/doc/libdivide-devel/doc/divlu.c
/usr/share/licenses/libdivide-devel
/usr/share/licenses/libdivide-devel/LICENSE.txt

References

Summary

In this tutorial we learn how to install libdivide-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install libdivide-devel on Fedora 36” linkTitle: “libdivide-devel” type: “docs” description: “In this tutorial we learn how to install libdivide-devel in Fedora 36. libdivide-devel is Development files for libdivide” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/libdivide-devel-featured.png

Introduction

In this tutorial we learn how to install libdivide-devel on Fedora 36.

What is libdivide-devel

This package contains a header-only C/C++ library for optimizing integer division. Integer division is one of the slowest instructions on most CPUs, e.g. on current x64 CPUs a 64-bit integer division has a latency of up to 90 clock cycles whereas a multiplication has a latency of only 3 clock cycles. libdivide allows you to replace expensive integer divsion instructions by a sequence of shift, add and multiply instructions that will calculate the integer division much faster. On current CPUs you can get a speedup of up to 10x for 64-bit integer division and a speedup of up to to 5x for 32-bit integer division when using libdivide. libdivide also supports SSE2, AVX2 and AVX512 vector division which provides an even larger speedup.

We can use yum or dnf to install libdivide-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libdivide-devel.

Install libdivide-devel on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libdivide-devel using dnf by running the following command:

sudo dnf -y install libdivide-devel

Install libdivide-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libdivide-devel using yum by running the following command:

sudo yum -y install libdivide-devel

How To Uninstall libdivide-devel on Fedora 36

To uninstall only the libdivide-devel package we can use the following command:

sudo dnf remove libdivide-devel

libdivide-devel Package Contents on Fedora 36

/usr/include/libdivide.h
/usr/lib64/cmake/libdivide
/usr/lib64/cmake/libdivide/libdivideConfig.cmake
/usr/lib64/cmake/libdivide/libdivideConfigVersion.cmake
/usr/share/doc/libdivide-devel
/usr/share/doc/libdivide-devel/CHANGELOG.md
/usr/share/doc/libdivide-devel/README.md
/usr/share/doc/libdivide-devel/doc
/usr/share/doc/libdivide-devel/doc/C-API.md
/usr/share/doc/libdivide-devel/doc/CPP-API.md
/usr/share/doc/libdivide-devel/doc/divide_by_constants_codegen_reference.c
/usr/share/doc/libdivide-devel/doc/divlu.c
/usr/share/licenses/libdivide-devel
/usr/share/licenses/libdivide-devel/LICENSE.txt

References

Summary

In this tutorial we learn how to install libdivide-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).