Project

General

Profile

Backport #61475

pacific: common: Use double instead of long double to improve performance

Added by Rixin Luo 9 months ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Release:
pacific
Crash signature (v1):
Crash signature (v2):

Description

To convert namoseconds to seconds, the precision needs to be 10,
and the precision of double is 15, which is enough to use.
On aarch64, double division uses the div instruction, while long
double uses the gcc buildin _divtf3, which has poor performance.
Therefore, use double instead of long double for better performance.

the parent pull request is https://github.com/ceph/ceph/pull/42082

History

#2 Updated by Ilya Dryomov 8 months ago

  • Target version deleted (v16.2.13)

#3 Updated by Yuri Weinstein 8 months ago

#4 Updated by Radoslaw Zarzynski 8 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF