• Russ Cox's avatar
    runtime: use 64-bit negative error code on 64-bit machines · e3c7a9db
    Russ Cox authored
    NEGL does a negation of the bottom 32 bits and then zero-extends to 64 bits,
    resulting in a negative 32-bit number but a positive 64-bit number.
    
    NEGQ does a full 64-bit negation, so that the result is negative both as
    a 32-bit and as a 64-bit number.
    
    This doesn't matter for the functions that are declared to return int32.
    It only matters for the ones that return int64 or void* [sic].
    
    This will fix the current incorrect error in the OpenBSD/amd64 build.
    The build will still be broken, but it won't report a bogus error.
    
    R=golang-dev, bradfitz
    CC=golang-dev
    https://golang.org/cl/7536046
    e3c7a9db
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...