gcc/libgo/go/runtime/fastlog2table.go
Ian Lance Taylor e0f69f36ea libgo: change build procedure to use build tags
Previously the libgo Makefile explicitly listed the set of files to
    compile for each package.  For packages that use build tags, this
    required a lot of awkward automake conditionals in the Makefile.
    
    This CL changes the build to look at the build tags in the files.
    The new shell script libgo/match.sh does the matching.  This required
    adjusting a lot of build tags, and removing some files that are never
    used.  I verified that the exact same sets of files are compiled on
    amd64 GNU/Linux.  I also tested the build on i386 Solaris.
    
    Writing match.sh revealed some bugs in the build tag handling that
    already exists, in a slightly different form, in the gotest shell
    script.  This CL fixes those problems as well.
    
    The old code used automake conditionals to handle systems that were
    missing strerror_r and wait4.  Rather than deal with those in Go, those
    functions are now implemented in runtime/go-nosys.c when necessary, so
    the Go code can simply assume that they exist.
    
    The os testsuite looked for dir_unix.go, which was never built for gccgo
    and has now been removed.  I changed the testsuite to look for dir.go
    instead.
    
    Reviewed-on: https://go-review.googlesource.com/25546

From-SVN: r239189
2016-08-06 00:36:33 +00:00

46 lines
908 B
Go

// AUTO-GENERATED by mkfastlog2table.go
// Run go generate from src/runtime to update.
// See mkfastlog2table.go for comments.
// +build ignore
package runtime
const fastlogNumBits = 5
var fastlog2Table = [1<<fastlogNumBits + 1]float64{
0,
0.0443941193584535,
0.08746284125033943,
0.12928301694496647,
0.16992500144231248,
0.2094533656289499,
0.24792751344358555,
0.28540221886224837,
0.3219280948873623,
0.3575520046180837,
0.39231742277876036,
0.4262647547020979,
0.4594316186372973,
0.4918530963296748,
0.5235619560570128,
0.5545888516776374,
0.5849625007211563,
0.6147098441152082,
0.6438561897747247,
0.6724253419714956,
0.7004397181410922,
0.7279204545631992,
0.7548875021634686,
0.7813597135246596,
0.8073549220576042,
0.8328900141647417,
0.8579809951275721,
0.8826430493618412,
0.9068905956085185,
0.9307373375628862,
0.9541963103868752,
0.9772799234999164,
1,
}