Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for mod (0.11 sec)

  1. misc/cgo/gmp/gmp.go

    func (z *Int) Div(x, y *Int) *Int {
    	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
    }
    
    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/s3select/sql/value.go

    			return 0, errArithDivideByZero
    		}
    		return left / right, nil
    	case opMultiply:
    		return left * right, nil
    	case opModulo:
    		if right == 0 {
    			return 0, errArithDivideByZero
    		}
    		return math.Mod(left, right), nil
    	}
    	// This does not happen
    	return 0, nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  3. cmd/iam-object-store.go

    		var p PolicyDoc
    		err = p.parseJSON(data)
    		if err != nil {
    			return err
    		}
    
    		if p.Version == 0 {
    			// This means that policy was in the old version (without any
    			// timestamp info). We fetch the mod time of the file and save
    			// that as create and update date.
    			p.CreateDate = objInfo.ModTime
    			p.UpdateDate = objInfo.ModTime
    		}
    
    		m[policy] = p
    		return nil
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  4. cmd/erasure-metadata_test.go

    			if ok1 != ok2 {
    				t.Errorf("Expected %s, got %s", test.expectedErr, err)
    			}
    			if test.succmodTimes != nil {
    				if !test.expectedSuccModTime.Equal(fi.SuccessorModTime) {
    					t.Errorf("Expected successor mod time to be %v but got %v", test.expectedSuccModTime, fi.SuccessorModTime)
    				}
    				if test.expectedIsLatest != fi.IsLatest {
    					t.Errorf("Expected IsLatest to be %v but got %v", test.expectedIsLatest, fi.IsLatest)
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. cmd/data-scanner.go

    			// Check if we should skip scanning folder...
    			// We can only skip if we are not indexing into a compacted destination
    			// and the entry itself is compacted.
    			if !into.Compacted && f.oldCache.isCompacted(h) {
    				if !h.mod(f.oldCache.Info.NextCycle, dataUsageUpdateDirCycles) {
    					// Transfer and add as child...
    					f.newCache.copyWithChildren(&f.oldCache, h, folder.parent)
    					into.addChild(h)
    					continue
    				}
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
Back to top