Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: Use double instead of long double to improve performance
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. Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
- Loading branch information