1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:54:45 -07:00

runtime: fix arm build.

More functions needs to be marked as no stack split.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/11963044
This commit is contained in:
Rémy Oudompheng 2013-08-01 07:48:21 +02:00
parent 2961d229de
commit 184b02ea9f

View File

@ -425,9 +425,6 @@ _rshlv(Vlong *r, Vlong a, int b)
void void
_lshv(Vlong *r, Vlong a, int b) _lshv(Vlong *r, Vlong a, int b)
{ {
ulong t;
t = a.lo;
if(b >= 32) { if(b >= 32) {
r->lo = 0; r->lo = 0;
if(b >= 64) { if(b >= 64) {
@ -435,16 +432,16 @@ _lshv(Vlong *r, Vlong a, int b)
r->hi = 0; r->hi = 0;
return; return;
} }
r->hi = t << (b-32); r->hi = a.lo << (b-32);
return; return;
} }
if(b <= 0) { if(b <= 0) {
r->lo = t; r->lo = a.lo;
r->hi = a.hi; r->hi = a.hi;
return; return;
} }
r->lo = t << b; r->lo = a.lo << b;
r->hi = (t >> (32-b)) | (a.hi << b); r->hi = (a.lo >> (32-b)) | (a.hi << b);
} }
void void
@ -722,6 +719,7 @@ _v2ul(Vlong rv)
return rv.lo; return rv.lo;
} }
#pragma textflag 7
long long
_v2si(Vlong rv) _v2si(Vlong rv)
{ {
@ -775,6 +773,7 @@ _gtv(Vlong lv, Vlong rv)
(lv.hi == rv.hi && lv.lo > rv.lo); (lv.hi == rv.hi && lv.lo > rv.lo);
} }
#pragma textflag 7
int int
_gev(Vlong lv, Vlong rv) _gev(Vlong lv, Vlong rv)
{ {