Commit 41645847 authored by Shenghou Ma's avatar Shenghou Ma

runtime: remove unnecessary ROUND in alg.c

        Introduced in CL 6452046.

R=golang-dev, nigeltao, dave
CC=golang-dev
https://golang.org/cl/6459051
parent 1e95429c
...@@ -476,7 +476,7 @@ runtime·equal(Type *t, ...) ...@@ -476,7 +476,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment