Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for divider (0.48 sec)

  1. misc/cgo/gmp/gmp.go

    func DivModInt(q, r, x, y *Int) {
    	q.doinit()
    	r.doinit()
    	x.doinit()
    	y.doinit()
    	C.mpz_tdiv_qr(&q.i[0], &r.i[0], &x.i[0], &y.i[0])
    }
    
    // GcdInt sets d to the greatest common divisor of a and b,
    // which must be positive numbers.
    // If x and y are not nil, GcdInt sets x and y such that d = a*x + b*y.
    // If either a or b is not positive, GcdInt sets d = x = y = 0.
    func GcdInt(d, x, y, a, b *Int) {
    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)
  2. internal/ioutil/ioutil.go

    		return false
    	}
    	return fi1.Size() == fi2.Size()
    }
    
    // DirectioAlignSize - DirectIO alignment needs to be 4K. Defined here as
    // directio.AlignSize is defined as 0 in MacOS causing divide by 0 error.
    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    // buffer, it is expected that input buffer is page aligned to
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. cmd/data-scanner.go

    	oldCache    dataUsageCache
    	newCache    dataUsageCache
    	updateCache dataUsageCache
    
    	dataUsageScannerDebug bool
    	healObjectSelect      uint32 // Do a heal check on an object once every n cycles. Must divide into healFolderInclude
    	scanMode              madmin.HealScanMode
    
    	weSleep func() bool
    
    	disks       []StorageAPI
    	disksQuorum int
    
    	// If set updates will be sent regularly to this channel.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  4. cmd/endpoint-ellipses.go

    	return ep, nil
    }
    
    // GetAllSets - parses all ellipses input arguments, expands them into
    // corresponding list of endpoints chunked evenly in accordance with a
    // specific set size.
    // For example: {1...64} is divided into 4 sets each of size 16.
    // This applies to even distributed setup syntax as well.
    func GetAllSets(args ...string) ([][]string, error) {
    	var customSetDriveCount uint64
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/expr_test.go

    	}
    }
    
    type badExprTest struct {
    	input string
    	error string // Empty means no error.
    }
    
    var badExprTests = []badExprTest{
    	{"0/0", "division by zero"},
    	{"3/0", "division by zero"},
    	{"(1<<63)/0", "divide of value with high bit set"},
    	{"3%0", "modulo by zero"},
    	{"(1<<63)%0", "modulo of value with high bit set"},
    	{"3<<-4", "negative left shift count"},
    	{"3<<(1<<63)", "negative left shift count"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    			if int64(value) < 0 {
    				p.errorf("divide of value with high bit set")
    			}
    			divisor := p.factor()
    			if divisor == 0 {
    				p.errorf("division by zero")
    			} else {
    				value /= divisor
    			}
    		case '%':
    			p.next()
    			divisor := p.factor()
    			if int64(value) < 0 {
    				p.errorf("modulo of value with high bit set")
    			}
    			if divisor == 0 {
    				p.errorf("modulo by zero")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  7. internal/hash/checksum.go

    	crc := c.Raw
    	if len(crc) != c.Type.RawByteLen() {
    		return b
    	}
    	b = append(b, tmp[:n]...)
    	b = append(b, crc...)
    	if c.Type.Is(ChecksumMultipart) {
    		var checksums int
    		// Ensure we don't divide by 0:
    		if c.Type.RawByteLen() == 0 || len(parts)%c.Type.RawByteLen() != 0 {
    			hashLogIf(context.Background(), fmt.Errorf("internal error: Unexpected checksum length: %d, each checksum %d", len(parts), c.Type.RawByteLen()))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  8. internal/s3select/sql/value.go

    )
    
    var (
    	errArithMismatchedTypes = errors.New("cannot perform arithmetic on mismatched types")
    	errArithInvalidOperator = errors.New("invalid arithmetic operator")
    	errArithDivideByZero    = errors.New("cannot divide by 0")
    
    	errCmpMismatchedTypes     = errors.New("cannot compare values of different types")
    	errCmpInvalidBoolOperator = errors.New("invalid comparison operator for boolean arguments")
    )
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
Back to top