aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPaul Eggert2024-07-10 02:37:55 +0200
committerPaul Eggert2024-07-11 16:01:41 +0200
commit6ef052d9b23aef3f34d19e5d93d97884215d1465 (patch)
tree0de5e670df5d238a0dde0b49559a23f705a29ae0 /java
parent5e8a38ecb2a78c0e318892683dc0195084197c57 (diff)
downloademacs-6ef052d9b23aef3f34d19e5d93d97884215d1465.tar.gz
emacs-6ef052d9b23aef3f34d19e5d93d97884215d1465.zip
Reduce size of integer product in timefns
* src/timefns.c (emacs_gcd): New static function. (ticks_hz_hz_ticks): Use it to reduce the size of the integer product in the common case when converting from ns to ps. For that, we need to multiply t.ticks only by 10³, not multiply by 10¹² and then divide by 10⁹. This avoids the need to use bignums in a significant number of cases.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions