diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-10-04 20:16:41 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-10-04 20:16:41 +0200 |
commit | 1dd7f0893b28d10fb40f2ce7337c986b83c16f1d (patch) | |
tree | 3b9f57dc60a02bb3efb02722121071db798109f6 /sys/src/ape | |
parent | b556e87e08dd27f127e82963c5b2dc39f10dd389 (diff) |
ape: add missing _subv() function to 386/vlop.s
Diffstat (limited to 'sys/src/ape')
-rw-r--r-- | sys/src/ape/lib/ap/386/vlop.s | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/src/ape/lib/ap/386/vlop.s b/sys/src/ape/lib/ap/386/vlop.s index 42e8a70df..1ad69f274 100644 --- a/sys/src/ape/lib/ap/386/vlop.s +++ b/sys/src/ape/lib/ap/386/vlop.s @@ -33,7 +33,7 @@ TEXT _div64by32(SB), $0 MOVL DX, 0(CX) RET -TEXT _addv(SB), $0 +TEXT _addv(SB),1,$0 /* used in profiler, can't be profiled */ MOVL r+0(FP), CX MOVL a+4(FP), AX MOVL a+8(FP), BX @@ -42,3 +42,13 @@ TEXT _addv(SB), $0 MOVL AX, 0(CX) MOVL BX, 4(CX) RET + +TEXT _subv(SB),1,$0 /* used in profiler, can't be profiled */ + MOVL r+0(FP), CX + MOVL a+4(FP), AX + MOVL a+8(FP), BX + SUBL b+12(FP), AX + SBBL b+16(FP), BX + MOVL AX, 0(CX) + MOVL BX, 4(CX) + RET |