Home
last modified time | relevance | path

Searched refs:yOff (Results 1 – 25 of 37) sorted by relevance

12

/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/raw/
DNat224.java42 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
45 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
48 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
51 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
54 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
57 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
60 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
63 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
96 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
99 c += (x[xOff + 0] & M) + (y[yOff + 0] & M) + (z[zOff + 0] & M); in addBothTo()
[all …]
DNat256.java45 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
48 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
51 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
54 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
57 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
60 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
63 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
66 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
69 c += (x[xOff + 7] & M) + (y[yOff + 7] & M); in add()
105 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
[all …]
DNat192.java195 public static boolean diff(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in diff() argument
197 boolean pos = gte(x, xOff, y, yOff); in diff()
200 sub(x, xOff, y, yOff, z, zOff); in diff()
204 sub(y, yOff, x, xOff, z, zOff); in diff()
296 public static boolean gte(int[] x, int xOff, int[] y, int yOff) in gte() argument
301 int y_i = y[yOff + i] ^ Integer.MIN_VALUE; in gte()
423 public static void mul(int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mul() argument
425 long y_0 = y[yOff + 0] & M; in mul()
426 long y_1 = y[yOff + 1] & M; in mul()
427 long y_2 = y[yOff + 2] & M; in mul()
[all …]
DNat.java85 public static int addBothTo(int len, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
90 c += (x[xOff + i] & M) + (y[yOff + i] & M) + (z[zOff + i] & M); in addBothTo()
491 public static void mul(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mul() argument
493 zz[zzOff + len] = mulWord(len, x[xOff], y, yOff, zz, zzOff); in mul()
497 zz[zzOff + i + len] = mulWordAddTo(len, x[xOff + i], y, yOff, zz, zzOff + i); in mul()
501 …public static void mul(int[] x, int xOff, int xLen, int[] y, int yOff, int yLen, int[] zz, int zzO… in mul() argument
503 zz[zzOff + yLen] = mulWord(yLen, x[xOff], y, yOff, zz, zzOff); in mul()
507 zz[zzOff + i + yLen] = mulWordAddTo(yLen, x[xOff + i], y, yOff, zz, zzOff + i); in mul()
524 public static int mulAddTo(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mulAddTo() argument
529 long c = mulWordAddTo(len, x[xOff + i], y, yOff, zz, zzOff) & M; in mulAddTo()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/raw/
DNat224.java38 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
41 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
44 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
47 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
50 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
53 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
56 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
59 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
92 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
95 c += (x[xOff + 0] & M) + (y[yOff + 0] & M) + (z[zOff + 0] & M); in addBothTo()
[all …]
DNat256.java41 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
44 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
47 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
50 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
53 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
56 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
59 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
62 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
65 c += (x[xOff + 7] & M) + (y[yOff + 7] & M); in add()
101 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
[all …]
DNat192.java191 public static boolean diff(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in diff() argument
193 boolean pos = gte(x, xOff, y, yOff); in diff()
196 sub(x, xOff, y, yOff, z, zOff); in diff()
200 sub(y, yOff, x, xOff, z, zOff); in diff()
292 public static boolean gte(int[] x, int xOff, int[] y, int yOff) in gte() argument
297 int y_i = y[yOff + i] ^ Integer.MIN_VALUE; in gte()
419 public static void mul(int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mul() argument
421 long y_0 = y[yOff + 0] & M; in mul()
422 long y_1 = y[yOff + 1] & M; in mul()
423 long y_2 = y[yOff + 2] & M; in mul()
[all …]
DNat.java81 public static int addBothTo(int len, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
86 c += (x[xOff + i] & M) + (y[yOff + i] & M) + (z[zOff + i] & M); in addBothTo()
487 public static void mul(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mul() argument
489 zz[zzOff + len] = mulWord(len, x[xOff], y, yOff, zz, zzOff); in mul()
493 zz[zzOff + i + len] = mulWordAddTo(len, x[xOff + i], y, yOff, zz, zzOff + i); in mul()
497 …public static void mul(int[] x, int xOff, int xLen, int[] y, int yOff, int yLen, int[] zz, int zzO… in mul() argument
499 zz[zzOff + yLen] = mulWord(yLen, x[xOff], y, yOff, zz, zzOff); in mul()
503 zz[zzOff + i + yLen] = mulWordAddTo(yLen, x[xOff + i], y, yOff, zz, zzOff + i); in mul()
520 public static int mulAddTo(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mulAddTo() argument
525 long c = mulWordAddTo(len, x[xOff + i], y, yOff, zz, zzOff) & M; in mulAddTo()
[all …]
/external/skia/gm/
Danisotropic.cpp70 int yOff; in onDraw() local
72 yOff = kSpacer + i * (fBM.height() + kSpacer); in onDraw()
75 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw()
78 this->draw(canvas, kSpacer, yOff, fBM.width(), height); in onDraw()
85 int xOff, yOff; in onDraw() local
88 yOff = kSpacer + i * (fBM.height() + kSpacer); in onDraw()
92 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fBM.height() + kSpacer); in onDraw()
95 this->draw(canvas, xOff, yOff, width, fBM.height()); in onDraw()
Dnested.cpp94 SkScalar xOff = 2, yOff = 2; in onDraw() local
107 canvas->translate(xOff, -yOff - 40.0f); in onDraw()
109 canvas->translate(xOff, yOff); in onDraw()
120 yOff += 45; in onDraw()
Dmegalooper.cpp163 sk_sp<SkDrawLooper> create1Looper(SkScalar xOff, SkScalar yOff, SkColor color) { in create1Looper() argument
170 info.fOffset.set(xOff, yOff); in create1Looper()
206 sk_sp<SkDrawLooper> create4Looper(SkScalar xOff, SkScalar yOff) { in create4Looper() argument
218 info.fOffset.set(xOff+gBlurOffsets[i].fX, yOff+gBlurOffsets[i].fY); in create4Looper()
/external/skqp/gm/
Danisotropic.cpp70 int yOff; in onDraw() local
72 yOff = kSpacer + i * (fBM.height() + kSpacer); in onDraw()
75 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw()
78 this->draw(canvas, kSpacer, yOff, fBM.width(), height); in onDraw()
85 int xOff, yOff; in onDraw() local
88 yOff = kSpacer + i * (fBM.height() + kSpacer); in onDraw()
92 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fBM.height() + kSpacer); in onDraw()
95 this->draw(canvas, xOff, yOff, width, fBM.height()); in onDraw()
Dnested.cpp94 SkScalar xOff = 2, yOff = 2; in onDraw() local
107 canvas->translate(xOff, -yOff - 40.0f); in onDraw()
109 canvas->translate(xOff, yOff); in onDraw()
120 yOff += 45; in onDraw()
Dmegalooper.cpp163 sk_sp<SkDrawLooper> create1Looper(SkScalar xOff, SkScalar yOff, SkColor color) { in create1Looper() argument
170 info.fOffset.set(xOff, yOff); in create1Looper()
206 sk_sp<SkDrawLooper> create4Looper(SkScalar xOff, SkScalar yOff) { in create4Looper() argument
218 info.fOffset.set(xOff+gBlurOffsets[i].fX, yOff+gBlurOffsets[i].fY); in create4Looper()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java307 public static void xor(byte[] x, byte[] y, int yOff) in xor() argument
312 x[i] ^= y[yOff + i]; ++i; in xor()
313 x[i] ^= y[yOff + i]; ++i; in xor()
314 x[i] ^= y[yOff + i]; ++i; in xor()
315 x[i] ^= y[yOff + i]; ++i; in xor()
320 public static void xor(byte[] x, int xOff, byte[] y, int yOff, byte[] z, int zOff) in xor() argument
325 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
326 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
327 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
328 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/gcm/
DGCMUtil.java303 public static void xor(byte[] x, byte[] y, int yOff) in xor() argument
308 x[i] ^= y[yOff + i]; ++i; in xor()
309 x[i] ^= y[yOff + i]; ++i; in xor()
310 x[i] ^= y[yOff + i]; ++i; in xor()
311 x[i] ^= y[yOff + i]; ++i; in xor()
316 public static void xor(byte[] x, int xOff, byte[] y, int yOff, byte[] z, int zOff) in xor() argument
321 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
322 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
323 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
324 z[zOff + i] = (byte)(x[xOff + i] ^ y[yOff + i]); ++i; in xor()
[all …]
/external/skia/tools/
DDDLTileHelper.cpp108 for (int y = 0, yOff = 0; y < fNumDivisions; ++y, yOff += yTileSize) { in DDLTileHelper() local
109 int ySize = (y < fNumDivisions-1) ? yTileSize : viewport.height()-yOff; in DDLTileHelper()
114 SkIRect clip = SkIRect::MakeXYWH(xOff, yOff, xSize, ySize); in DDLTileHelper()
/external/skqp/tools/
DDDLTileHelper.cpp108 for (int y = 0, yOff = 0; y < fNumDivisions; ++y, yOff += yTileSize) { in DDLTileHelper() local
109 int ySize = (y < fNumDivisions-1) ? yTileSize : viewport.height()-yOff; in DDLTileHelper()
114 SkIRect clip = SkIRect::MakeXYWH(xOff, yOff, xSize, ySize); in DDLTileHelper()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DLongArray.java679 private static long addShiftedUp(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedUp() argument
685 long next = y[yOff + i]; in addShiftedUp()
692 private static long addShiftedDown(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedDown() argument
699 long next = y[yOff + i]; in addShiftedDown()
723 private static void add(long[] x, int xOff, long[] y, int yOff, int count) in add() argument
727 x[xOff + i] ^= y[yOff + i]; in add()
731 private static void add(long[] x, int xOff, long[] y, int yOff, long[] z, int zOff, int count) in add() argument
735 z[zOff + i] = x[xOff + i] ^ y[yOff + i]; in add()
1648 private static void flipVector(long[] x, int xOff, long[] y, int yOff, int yLen, int bits) in flipVector() argument
1655 add(x, xOff, y, yOff, yLen); in flipVector()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DLongArray.java680 private static long addShiftedUp(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedUp() argument
686 long next = y[yOff + i]; in addShiftedUp()
693 private static long addShiftedDown(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedDown() argument
700 long next = y[yOff + i]; in addShiftedDown()
724 private static void add(long[] x, int xOff, long[] y, int yOff, int count) in add() argument
728 x[xOff + i] ^= y[yOff + i]; in add()
732 private static void add(long[] x, int xOff, long[] y, int yOff, long[] z, int zOff, int count) in add() argument
736 z[zOff + i] = x[xOff + i] ^ y[yOff + i]; in add()
1649 private static void flipVector(long[] x, int xOff, long[] y, int yOff, int yLen, int bits) in flipVector() argument
1656 add(x, xOff, y, yOff, yLen); in flipVector()
[all …]
/external/skqp/tests/
DFontHostStreamTest.cpp42 const int yOff = itest.fTop - iref.fTop; in compare() local
48 int refY = y + yOff; in compare()
DDrawTextTest.cpp41 const int yOff = itest.fTop - iref.fTop; in compare() local
47 int refY = y + yOff; in compare()
/external/skia/tests/
DFontHostStreamTest.cpp42 const int yOff = itest.fTop - iref.fTop; in compare() local
48 int refY = y + yOff; in compare()
DDrawTextTest.cpp41 const int yOff = itest.fTop - iref.fTop; in compare() local
47 int refY = y + yOff; in compare()
/external/perfetto/ui/src/frontend/
Doverview_timeline_panel.ts90 const yOff = Math.floor(headerHeight + y * trackHeight); constant
93 ctx.fillRect(xStart, yOff, xEnd - xStart, Math.ceil(trackHeight));

12