diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-06-26 15:16:23 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-06-26 15:16:23 +0200 |
commit | 69b0980a42da16d97349ea962e57a5f55684e1a8 (patch) | |
tree | f76348957a5c60a693b4706fca2de14e23d891fc /sys/src/libc/arm/vlrt.c | |
parent | a99cf56c7d670f6af88cab39de91f1d6ac36416f (diff) |
libc: native _addv() and _subv() routines for arm
Diffstat (limited to 'sys/src/libc/arm/vlrt.c')
-rw-r--r-- | sys/src/libc/arm/vlrt.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/src/libc/arm/vlrt.c b/sys/src/libc/arm/vlrt.c index 139700ade..606d5dfd1 100644 --- a/sys/src/libc/arm/vlrt.c +++ b/sys/src/libc/arm/vlrt.c @@ -15,37 +15,6 @@ struct Vlong void abort(void); -/* needed by profiler; can't be profiled */ -#pragma profile off - -void -_addv(Vlong *r, Vlong a, Vlong b) -{ - ulong lo, hi; - - lo = a.lo + b.lo; - hi = a.hi + b.hi; - if(lo < a.lo) - hi++; - r->lo = lo; - r->hi = hi; -} - -void -_subv(Vlong *r, Vlong a, Vlong b) -{ - ulong lo, hi; - - lo = a.lo - b.lo; - hi = a.hi - b.hi; - if(lo > a.lo) - hi--; - r->lo = lo; - r->hi = hi; -} - -#pragma profile on - void _d2v(Vlong *y, double d) { |