Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for sign (0.45 sec)

  1. src/archive/tar/strconv.go

    		return strconv.FormatInt(secs, 10)
    	}
    
    	// If seconds is negative, then perform correction.
    	sign := ""
    	if secs < 0 {
    		sign = "-"             // Remember sign
    		secs = -(secs + 1)     // Add a second to secs
    		nsecs = -(nsecs - 1e9) // Take that second away from nsecs
    	}
    	return strings.TrimRight(fmt.Sprintf("%s%d.%09d", sign, secs, nsecs), "0")
    }
    
    // parsePAXRecord parses the input PAX record string into a key-value pair.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. api/go1.5.txt

    pkg go/constant, func MakeUnknown() Value
    pkg go/constant, func Num(Value) Value
    pkg go/constant, func Real(Value) Value
    pkg go/constant, func Shift(Value, token.Token, uint) Value
    pkg go/constant, func Sign(Value) int
    pkg go/constant, func StringVal(Value) string
    pkg go/constant, func Uint64Val(Value) (uint64, bool)
    pkg go/constant, func UnaryOp(token.Token, Value, uint) Value
    pkg go/constant, type Kind int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    <code>package math</code>, which exports function <code>Sin</code>, and
    installed the compiled package in the file identified by
    <code>"lib/math"</code>.
    This table illustrates how <code>Sin</code> is accessed in files
    that import the package after the
    various types of import declaration.
    </p>
    
    <pre class="grammar">
    Import declaration          Local name of Sin
    
    import   "lib/math"         math.Sin
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. doc/asm.html

    	MOVQ	$runtime·profileloop1(SB), CX
    	MOVQ	CX, 0(SP)
    	CALL	runtime·externalthreadhandler(SB)
    	RET
    </pre>
    
    <p>
    In the general case, the frame size is followed by an argument size, separated by a minus sign.
    (It's not a subtraction, just idiosyncratic syntax.)
    The frame size <code>$24-8</code> states that the function has a 24-byte frame
    and is called with 8 bytes of argument, which live on the caller's frame.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    As a simple example, consider a package that uses cgo to call C.sin.
    The following code will be generated by cgo:
    
    	// compiled by gc
    
    	//go:cgo_ldflag "-lm"
    
    	type _Ctype_double float64
    
    	//go:cgo_import_static _cgo_gcc_Cfunc_sin
    	//go:linkname __cgo_gcc_Cfunc_sin _cgo_gcc_Cfunc_sin
    	var __cgo_gcc_Cfunc_sin byte
    	var _cgo_gcc_Cfunc_sin = unsafe.Pointer(&__cgo_gcc_Cfunc_sin)
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  6. src/archive/zip/reader_test.go

    		t.Errorf("zeroes: error=%v, want %v", err, ErrFormat)
    	}
    
    	// repeated directoryEndSignatures
    	sig := make([]byte, 4)
    	binary.LittleEndian.PutUint32(sig, directoryEndSignature)
    	for i := 0; i < size-4; i += 4 {
    		copy(b[i:i+4], sig)
    	}
    	_, err = NewReader(bytes.NewReader(b), size)
    	if err != ErrFormat {
    		t.Errorf("sigs: error=%v, want %v", err, ErrFormat)
    	}
    
    	// negative size
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  7. api/go1.13.txt

    pkg crypto/ed25519, func NewKeyFromSeed([]uint8) PrivateKey
    pkg crypto/ed25519, func Sign(PrivateKey, []uint8) []uint8
    pkg crypto/ed25519, func Verify(PublicKey, []uint8, []uint8) bool
    pkg crypto/ed25519, method (PrivateKey) Public() crypto.PublicKey
    pkg crypto/ed25519, method (PrivateKey) Seed() []uint8
    pkg crypto/ed25519, method (PrivateKey) Sign(io.Reader, []uint8, crypto.SignerOpts) ([]uint8, error)
    pkg crypto/ed25519, type PrivateKey []uint8
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  8. api/go1.4.txt

    pkg crypto, type Signer interface { Public, Sign }
    pkg crypto, type Signer interface, Public() PublicKey
    pkg crypto, type Signer interface, Sign(io.Reader, []uint8, SignerOpts) ([]uint8, error)
    pkg crypto, type SignerOpts interface { HashFunc }
    pkg crypto, type SignerOpts interface, HashFunc() Hash
    pkg crypto/ecdsa, method (*PrivateKey) Public() crypto.PublicKey
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 12 03:01:01 GMT 2014
    - 34K bytes
    - Viewed (0)
  9. misc/cgo/gmp/gmp.go

    	x.doinit()
    	y.doinit()
    	z.doinit()
    	C.mpz_tdiv_q(&z.i[0], &x.i[0], &y.i[0])
    	return z
    }
    
    // Mod sets z = x % y and returns z.
    // Like the result of the Go % operator, z has the same sign as x.
    func (z *Int) Mod(x, y *Int) *Int {
    	x.doinit()
    	y.doinit()
    	z.doinit()
    	C.mpz_tdiv_r(&z.i[0], &x.i[0], &y.i[0])
    	return z
    }
    
    // Lsh sets z = x << s and returns z.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  10. src/archive/zip/writer_test.go

    		UncompressedSize64: 5678,
    	}); err != nil {
    		t.Fatal(err)
    	}
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    	b := buf.Bytes()
    
    	var sig [4]byte
    	binary.LittleEndian.PutUint32(sig[:], uint32(fileHeaderSignature))
    
    	idx := bytes.Index(b, sig[:])
    	if idx == -1 {
    		t.Fatal("file header not found")
    	}
    	b = b[idx:]
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
Back to top