- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for yi (0.03 sec)
-
test/fixedbugs/issue4752.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func F(xi, yi interface{}) uint64 { x, y := xi.(uint64), yi.(uint64) return x &^ y } func G(xi, yi interface{}) uint64 { return xi.(uint64) &^ yi.(uint64) // generates incorrect code } func main() { var x, y uint64 = 0, 1 << 63 f := F(x, y) g := G(x, y) if f != 0 || g != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 513 bytes - Viewed (0) -
src/image/internal/imageutil/impl.go
dpix := dst.Pix[y*dst.Stride:] yi := (sy-src.Rect.Min.Y)*src.YStride + (sp.X - src.Rect.Min.X) ci := (sy-src.Rect.Min.Y)*src.CStride + (sp.X - src.Rect.Min.X) for x := x0; x != x1; x, yi, ci = x+4, yi+1, ci+1 { // This is an inline version of image/color/ycbcr.go's func YCbCrToRGB. yy1 := int32(src.Y[yi]) * 0x10101 cb1 := int32(src.Cb[ci]) - 128 cr1 := int32(src.Cr[ci]) - 128
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 10 17:50:11 UTC 2018 - 7.4K bytes - Viewed (0) -
src/image/internal/imageutil/gen.go
for x := x0; x != x1; x, yi, ci = x+4, yi+1, ci+1 { `, "422": ` ciBase := (sy-src.Rect.Min.Y)*src.CStride - src.Rect.Min.X/2 for x, sx := x0, sp.X; x != x1; x, sx, yi = x+4, sx+1, yi+1 { ci := ciBase + sx/2 `, "420": ` ciBase := (sy/2-src.Rect.Min.Y/2)*src.CStride - src.Rect.Min.X/2 for x, sx := x0, sp.X; x != x1; x, sx, yi = x+4, sx+1, yi+1 { ci := ciBase + sx/2 `, "440": `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 4.3K bytes - Viewed (0) -
src/math/pow.go
a1 := 1.0 ae := 0 // ans *= x**yf if yf != 0 { if yf > 0.5 { yf-- yi++ } a1 = Exp(yf * Log(x)) } // ans *= x**yi // by multiplying in successive squarings // of x according to bits of yi. // accumulate powers of two into exp. x1, xe := Frexp(x) for i := int64(yi); i != 0; i >>= 1 { if xe < -1<<12 || 1<<12 < xe { // catch xe before it overflows the left shift below
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 24 19:10:58 UTC 2023 - 3.6K bytes - Viewed (0) -
src/image/ycbcr.go
return color.RGBA64{uint16(r), uint16(g), uint16(b), uint16(a)} } func (p *YCbCr) YCbCrAt(x, y int) color.YCbCr { if !(Point{x, y}.In(p.Rect)) { return color.YCbCr{} } yi := p.YOffset(x, y) ci := p.COffset(x, y) return color.YCbCr{ p.Y[yi], p.Cb[ci], p.Cr[ci], } } // YOffset returns the index of the first element of Y that corresponds to // the pixel at (x, y). func (p *YCbCr) YOffset(x, y int) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 8.7K bytes - Viewed (0) -
src/internal/diff/diff.go
// Gather the indexes of those strings in x and y, building: // xi[i] = increasing indexes of unique strings in x. // yi[i] = increasing indexes of unique strings in y. // inv[i] = index j such that x[xi[i]] = y[yi[j]]. var xi, yi, inv []int for i, s := range y { if m[s] == -1+-4 { m[s] = len(yi) yi = append(yi, i) } } for i, s := range x { if j, ok := m[s]; ok && j >= 0 { xi = append(xi, i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 14:13:04 UTC 2023 - 7.5K bytes - Viewed (0) -
test/fibo.go
// result is x return z.set(x) } // m >= n > 0 z = z.make(m + 1) var c big.Word for i, xi := range x[:n] { yi := y[i] zi := xi + yi + c z[i] = zi // see "Hacker's Delight", section 2-12 (overflow detection) c = ((xi & yi) | ((xi | yi) &^ zi)) >> (W - 1) } for i, xi := range x[n:] { zi := xi + c z[n+i] = zi c = (xi &^ zi) >> (W - 1) if c == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 08 22:22:58 UTC 2014 - 6.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/fuse_comparisons.go
xi := getConstIntArgIndex(x) if xi < 0 { return false } yi := getConstIntArgIndex(y) if yi < 0 { return false } // Check that the non-constant arguments to the inequalities // are the same. return x.Args[xi^1] == y.Args[yi^1] } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 4K bytes - Viewed (0) -
src/image/ycbcr_test.go
// will be set multiple times. That's OK. We just want to avoid a uniform image. for y := r1.Min.Y; y < r1.Max.Y; y++ { for x := r1.Min.X; x < r1.Max.X; x++ { yi := m.YOffset(x, y) ci := m.COffset(x, y) m.Y[yi] = uint8(16*y + x) m.Cb[ci] = uint8(y + 16*x) m.Cr[ci] = uint8(y + 16*x) } } // Make various sub-images of m. for y0 := delta.Y + 3; y0 < delta.Y+7; y0++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 26 00:14:16 UTC 2015 - 3.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/unify.go
// Look under the name, but not under type parameters (go.dev/issue/60564). xi := asInterface(x) yi := asInterface(y) // If we have two interfaces, check the type terms for equivalence, // and unify common methods if possible. if xi != nil && yi != nil { xset := xi.typeSet() yset := yi.typeSet() if xset.comparable != yset.comparable { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.8K bytes - Viewed (0)