1
0
mirror of https://github.com/golang/go synced 2024-11-15 04:20:22 -07:00

[release-branch.go1] runtime: remove unnecessary ROUND in alg.c

««« backport 4bd268b3c88a
runtime: remove unnecessary ROUND in alg.c
        Introduced in CL 6452046.

R=golang-dev, nigeltao, dave
CC=golang-dev
https://golang.org/cl/6459051

»»»
This commit is contained in:
Shenghou Ma 2012-09-22 05:54:29 +10:00
parent c645541691
commit c469cb7c5d

View File

@ -472,7 +472,7 @@ runtime·equal(Type *t, ...)
uintptr ret; uintptr ret;
x = (byte*)(&t+1); x = (byte*)(&t+1);
y = x + ROUND(t->size, t->align); y = x + t->size;
ret = (uintptr)(y + t->size); ret = (uintptr)(y + t->size);
ret = ROUND(ret, Structrnd); ret = ROUND(ret, Structrnd);
t->alg->equal((bool*)ret, t->size, x, y); t->alg->equal((bool*)ret, t->size, x, y);