Open Bug 1927846 Opened 1 year ago Updated 1 year ago

Use std::gcd instead of a home-grown version

Categories

(Core :: MFBT, task)

task

Tracking

()

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

Details

Attachments

(1 file)

Attached file bench-gcd.cpp

The attached benchmark (taken from Bug 1821362) shows comparable (and actually slightly better) performance of std::gcd compared to our implementation when compiled with -O2, -O2 -march=native, -03 and -03 -march=native , when compiled with g++ 14.2 and clang++ 18.1, and depending on libstdc++ 14.2.1.

We currently build with libstdc++ 8, maybe we should change this?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: