Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 418 for clobber (0.23 sec)

  1. src/runtime/tls_loong64.s

    // license that can be found in the LICENSE file.
    
    #include "go_asm.h"
    #include "go_tls.h"
    #include "funcdata.h"
    #include "textflag.h"
    
    // If !iscgo, this is a no-op.
    //
    // NOTE: mcall() assumes this clobbers only R30 (REGTMP).
    TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0
    	MOVB	runtime·iscgo(SB), R30
    	BEQ	R30, nocgo
    
    	MOVV	g, runtime·tls_g(SB)
    
    nocgo:
    	RET
    
    TEXT runtime·load_g(SB),NOSPLIT|NOFRAME,$0-0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 20:18:25 UTC 2022
    - 589 bytes
    - Viewed (0)
  2. test/fixedbugs/issue13171.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // Make sure the compiler knows that DUFFCOPY clobbers X0
    
    import "fmt"
    
    //go:noinline
    func f(x float64) float64 {
    	// y is allocated to X0
    	y := x + 5
    	// marshals z before y.  Marshaling z
    	// calls DUFFCOPY.
    	return g(z, y)
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 00:13:35 UTC 2016
    - 588 bytes
    - Viewed (0)
  3. src/net/packetconn_test.go

    			skipOrFatalFn()
    			continue
    		}
    
    		c1, err := ListenPacket(tt.net, tt.addr1)
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer closer(c1, tt.net, tt.addr1, tt.addr2)
    		c1.LocalAddr()
    
    		c2, err := ListenPacket(tt.net, tt.addr2)
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer closer(c2, tt.net, tt.addr1, tt.addr2)
    		c2.LocalAddr()
    		rb2 := make([]byte, 128)
    
    		if _, err := c1.WriteTo(wb, c2.LocalAddr()); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(
                new ClosingCallable<Closeable>() {
                  @Override
                  public Closeable call(DeferredCloser closer) throws Exception {
                    return closer.eventuallyClose(mockCloseable, executor);
                  }
                },
                executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
        assertThrows(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. test/codegen/clobberdeadreg.go

    	// amd64:-`MOVQ\t\$-2401018187971961171, BP` // frame pointer is not clobbered
    	StackArgsCall([10]int{a, b, c})
    	// amd64:`MOVQ\t\$-2401018187971961171, R12`, `MOVQ\t\$-2401018187971961171, R13`, `MOVQ\t\$-2401018187971961171, DX`
    	// amd64:-`MOVQ\t\$-2401018187971961171, AX`, -`MOVQ\t\$-2401018187971961171, R11` // register args are not clobbered
    	RegArgsCall(a, b, c, d)
    }
    
    //go:noinline
    func StackArgsCall([10]int) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. test/fixedbugs/issue24449.go

    import (
    	"sync/atomic"
    )
    
    var cnt32 int32
    
    //go:noinline
    func test32(a, b []int) bool {
    	// Try to generate flag value, issue atomic
    	// adds and then re-use the flag value to see if
    	// the atomic add has clobbered them.
    	atomic.AddInt32(&cnt32, 1)
    	if len(a) == len(b) {
    		atomic.AddInt32(&cnt32, 2)
    	}
    	atomic.AddInt32(&cnt32, 4)
    	if len(a) >= len(b) {
    		atomic.AddInt32(&cnt32, 8)
    	}
    	if len(a) <= len(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 20 09:44:50 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/ClosingFuture.java

     *
     * <pre>{@code
     * FluentFuture<UserName> userName =
     *     ClosingFuture.submit(
     *             closer -> closer.eventuallyClose(database.newTransaction(), closingExecutor),
     *             executor)
     *         .transformAsync((closer, transaction) -> transaction.queryClosingFuture("..."), executor)
     *         .transform((closer, result) -> result.get("userName"), directExecutor())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 98.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     *
     * <pre>{@code
     * FluentFuture<UserName> userName =
     *     ClosingFuture.submit(
     *             closer -> closer.eventuallyClose(database.newTransaction(), closingExecutor),
     *             executor)
     *         .transformAsync((closer, transaction) -> transaction.queryClosingFuture("..."), executor)
     *         .transform((closer, result) -> result.get("userName"), directExecutor())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 98.3K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_client.go

    	nodeClient csipbv1.NodeClient,
    	closer io.Closer,
    	err error,
    )
    
    type nodeV1AccessModeMapper func(am api.PersistentVolumeAccessMode) csipbv1.VolumeCapability_AccessMode_Mode
    
    // newV1NodeClient creates a new NodeClient with the internally used gRPC
    // connection set up. It also returns a closer which must be called to close
    // the gRPC connection when the NodeClient is not used anymore.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil.go

    	w.hasWritten = true
    	return w.Writer.Write(p)
    }
    
    // Close closes the WriteOnCloser. It behaves like io.Closer.
    func (w *WriteOnCloser) Close() error {
    	if !w.hasWritten {
    		_, err := w.Write(nil)
    		if err != nil {
    			return err
    		}
    	}
    	if closer, ok := w.Writer.(io.Closer); ok {
    		return closer.Close()
    	}
    	return nil
    }
    
    // HasWritten returns true if at least one write operation was performed.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top