Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for mmat (0.05 sec)

  1. src/syscall/linkname_unix.go

    //go:build unix
    
    package syscall
    
    import _ "unsafe" // for linkname
    
    // mmap should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - modernc.org/memory
    //   - github.com/ncruces/go-sqlite3
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 532 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package counter
    
    import (
    	"bytes"
    	"fmt"
    	"strings"
    	"unsafe"
    
    	"golang.org/x/telemetry/internal/mmap"
    )
    
    type File struct {
    	Meta  map[string]string
    	Count map[string]uint64
    }
    
    func Parse(filename string, data []byte) (*File, error) {
    	if !bytes.HasPrefix(data, []byte(hdrPrefix)) || len(data) < pageSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/providers/services/groovy/settings.gradle

        @Inject //@javax.inject.Inject
        MyBuildLayoutPlugin(BuildLayout buildLayout) {
            this.buildLayout = buildLayout
        }
    
        @Override void apply(Settings settings) {
            // the meat and potatoes of the plugin
            println buildLayout.rootDirectory
        }
    }
    
    apply plugin: MyBuildLayoutPlugin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 686 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    fi
    
    uname=$(uname)
    
    includes_AIX='
    #include <net/if.h>
    #include <net/netopt.h>
    #include <netinet/ip_mroute.h>
    #include <sys/protosw.h>
    #include <sys/stropts.h>
    #include <sys/mman.h>
    #include <sys/poll.h>
    #include <sys/select.h>
    #include <sys/termio.h>
    #include <termios.h>
    #include <fcntl.h>
    
    #define AF_LOCAL AF_UNIX
    '
    
    includes_Darwin='
    #define _DARWIN_C_SOURCE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    	if start/pageSize != (start+n)/pageSize {
    		// bump start to next page
    		start = round(limit, pageSize)
    	}
    	return start, start + n
    }
    
    var memmap = mmap.Mmap
    var munmap = mmap.Munmap
    
    func (m *mappedFile) close() {
    	m.closeOnce.Do(func() {
    		if m.mapping != nil {
    			munmap(m.mapping)
    			m.mapping = nil
    		}
    		if m.f != nil {
    			m.f.Close() // best effort
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. src/syscall/syscall_aix.go

    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    //sys	mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys	munmap(addr uintptr, length uintptr) (err error)
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. src/runtime/sys_darwin.go

    	}
    	return
    }
    func osinit_hack_trampoline()
    
    // mmap is used to do low-level memory allocation via mmap. Don't allow stack
    // splits, since this function (used by sysAlloc) is called in a lot of low-level
    // parts of the runtime and callers often assume it won't acquire any locks.
    //
    //go:nosplit
    func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/main.go

    	// which we don't know the size.
    	if ctxt.Arch.Family != sys.Wasm {
    		// Don't mmap if we're building for Wasm. Wasm file
    		// layout is very different so filesize is meaningless.
    		if err := ctxt.Out.Mmap(filesize); err != nil {
    			Exitf("mapping output file failed: %v", err)
    		}
    	}
    	// asmb will redirect symbols to the output file mmap, and relocations
    	// will be applied directly there.
    	bench.Start("Asmb")
    	asmb(ctxt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/math/rand/rand_test.go

    		testNormalDistribution(t, numTestSamples, 0, 1, seed)
    	}
    }
    
    func TestNonStandardNormalValues(t *testing.T) {
    	sdmax := 1000.0
    	mmax := 1000.0
    	if testing.Short() {
    		sdmax = 5
    		mmax = 5
    	}
    	for sd := 0.5; sd < sdmax; sd *= 2 {
    		for m := 0.5; m < mmax; m *= 2 {
    			for _, seed := range testSeeds {
    				testNormalDistribution(t, numTestSamples, m, sd, seed)
    				if testing.Short() {
    					break
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. src/math/rand/v2/rand_test.go

    		testNormalDistribution(t, numTestSamples, 0, 1, seed)
    	}
    }
    
    func TestNonStandardNormalValues(t *testing.T) {
    	sdmax := 1000.0
    	mmax := 1000.0
    	if testing.Short() {
    		sdmax = 5
    		mmax = 5
    	}
    	for sd := 0.5; sd < sdmax; sd *= 2 {
    		for m := 0.5; m < mmax; m *= 2 {
    			for _, seed := range testSeeds {
    				testNormalDistribution(t, numTestSamples, m, sd, seed)
    				if testing.Short() {
    					break
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top