aboutsummaryrefslogtreecommitdiff
path: root/libgo/MERGE
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-01-10 03:59:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-01-10 03:59:20 +0000
commit0c22e4415fe9e88acaa99e72d33f4500d557ce68 (patch)
treeab834b9b0b4730baa18d49e3c47ae5033b722809 /libgo/MERGE
parent8462d909a7439fb0bf7095144dbf36524c7e61ea (diff)
downloadgcc-0c22e4415fe9e88acaa99e72d33f4500d557ce68.zip
gcc-0c22e4415fe9e88acaa99e72d33f4500d557ce68.tar.gz
gcc-0c22e4415fe9e88acaa99e72d33f4500d557ce68.tar.bz2
compiler, runtime: drop size arguments to hash/equal functions
Drop the size arguments for the hash/equal functions stored in type descriptors. Types know what size they are. To make this work, generate hash/equal functions for types that can use an identity comparison but are not a standard size and alignment. Drop the multiplications by 33 in the generated hash code and the reflect package hash code. They are not necessary since we started passing a seed value around, as the seed includes the hash of the earlier values. Copy the algorithms for standard types from the Go 1.7 runtime, replacing the C functions. Reviewed-on: https://go-review.googlesource.com/34983 From-SVN: r244256
Diffstat (limited to 'libgo/MERGE')
0 files changed, 0 insertions, 0 deletions