HomeSort by: relevance | last modified time | path
    Searched refs:rot (Results 1 - 25 of 30) sorted by relevancy

1 2

  /src/games/caesar/
caesar.c 75 init_rottbl(unsigned int rot)
78 rot %= LETTERS; /* prevent integer overflow */
84 rottbl[upper[i]] = upper[(i + rot) % LETTERS];
87 rottbl[lower[i]] = lower[(i + rot) % LETTERS];
112 long rot; local
116 rot = strtol(arg, &endp, 10);
119 if (errno == 0 && (rot < 0 || rot > INT_MAX))
123 return (unsigned int)rot;
  /src/games/tetris/
tetris.h 128 int rot; /* index of rotated version of this shape */ member in struct:shape
tetris.c 289 const struct shape *new = &shapes[curshape->rot];
  /src/external/gpl3/gcc.old/dist/gcc/config/aarch64/
aarch64-sve-builtins-sve2.cc 53 /* Return the UNSPEC_CDOT* unspec for rotation amount ROT. */
55 unspec_cdot (int rot)
57 switch (rot)
67 /* Return the UNSPEC_SQRDCMLAH* unspec for rotation amount ROT. */
69 unspec_sqrdcmlah (int rot)
71 switch (rot)
100 int rot = INTVAL (e.args.pop ()); variable
101 return e.use_exact_insn (code_for_aarch64_sve (unspec_cdot (rot),
113 int rot = INTVAL (e.args.pop ()); variable
114 return e.use_exact_insn (code_for_aarch64_lane (unspec_cdot (rot),
203 int rot = INTVAL (e.args.pop ()); variable
219 int rot = INTVAL (e.args.pop ()); variable
232 int rot = INTVAL (e.args.pop ()); variable
    [all...]
aarch64-sve-builtins-base.cc 52 /* Return the UNSPEC_CMLA* unspec for rotation amount ROT. */
54 unspec_cmla (int rot)
56 switch (rot)
66 /* Return the UNSPEC_FCMLA* unspec for rotation amount ROT. */
68 unspec_fcmla (int rot)
70 switch (rot)
80 /* Return the UNSPEC_COND_FCMLA* unspec for rotation amount ROT. */
82 unspec_cond_fcmla (int rot)
84 switch (rot)
296 int rot = INTVAL (e.args.pop ()) variable
338 int rot = INTVAL (e.args.pop ()); variable
361 int rot = INTVAL (e.args.pop ()); variable
    [all...]
  /src/common/dist/zlib/examples/
gzappend.c 122 /* rotate list[0..len-1] left by rot positions, in place */
123 local void rotate(unsigned char *list, unsigned len, unsigned rot)
129 /* normalize rot and handle degenerate cases */
131 if (rot >= len) rot %= len;
132 if (rot == 0) return;
138 if (rot == 1) {
146 if (rot == len - 1) {
154 cycles = gcd(len, rot); /* number of cycles */
160 from += rot; /* go right rot positions *
    [all...]
  /src/external/gpl3/binutils/dist/zlib/examples/
gzappend.c 122 /* rotate list[0..len-1] left by rot positions, in place */
123 local void rotate(unsigned char *list, unsigned len, unsigned rot)
129 /* normalize rot and handle degenerate cases */
131 if (rot >= len) rot %= len;
132 if (rot == 0) return;
138 if (rot == 1) {
146 if (rot == len - 1) {
154 cycles = gcd(len, rot); /* number of cycles */
160 from += rot; /* go right rot positions *
    [all...]
  /src/external/gpl3/binutils.old/dist/zlib/examples/
gzappend.c 122 /* rotate list[0..len-1] left by rot positions, in place */
123 local void rotate(unsigned char *list, unsigned len, unsigned rot)
129 /* normalize rot and handle degenerate cases */
131 if (rot >= len) rot %= len;
132 if (rot == 0) return;
138 if (rot == 1) {
146 if (rot == len - 1) {
154 cycles = gcd(len, rot); /* number of cycles */
160 from += rot; /* go right rot positions *
    [all...]
  /src/external/bsd/nsd/dist/
lookup3.c 109 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) macro
132 Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that
157 a -= c; a ^= rot(c, 4); c += b; \
158 b -= a; b ^= rot(a, 6); a += c; \
159 c -= b; c ^= rot(b, 8); b += a; \
160 a -= c; a ^= rot(c,16); c += b; \
161 b -= a; b ^= rot(a,19); a += c; \
162 c -= b; c ^= rot(b, 4); b += a; \
192 c ^= b; c -= rot(b,14); \
193 a ^= c; a -= rot(c,11);
    [all...]
  /src/external/bsd/unbound/dist/util/storage/
lookup3.c 118 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) macro
150 Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that
175 a -= c; a ^= rot(c, 4); c += b; \
176 b -= a; b ^= rot(a, 6); a += c; \
177 c -= b; c ^= rot(b, 8); b += a; \
178 a -= c; a ^= rot(c,16); c += b; \
179 b -= a; b ^= rot(a,19); a += c; \
180 c -= b; c ^= rot(b, 4); b += a; \
210 c ^= b; c -= rot(b,14); \
211 a ^= c; a -= rot(c,11);
    [all...]
  /src/external/gpl2/groff/dist/src/devices/grolbp/
lbp.h 217 rot[4], /* rotation */ local
222 vdmnum(perimeter,perim),vdmnum(0,rot),
287 rot[4], /* rotation */ local
292 vdmnum(pattern,patt),vdmnum(0,rot),
294 vdmprintf("}F%s",vdmnum(unionstyle,rot));
  /src/external/bsd/ppp/dist/pppd/
ppp-md4.c 164 ** Note: The "rot" operator uses the variable "tmp".
171 #define rot(X,S) (tmp=X,(tmp<<S) | (tmp>>(32-S))) macro
172 #define ff(A,B,C,D,i,s) A = rot((A + f(B,C,D) + X[i]),s)
173 #define gg(A,B,C,D,i,s) A = rot((A + g(B,C,D) + X[i] + C2),s)
174 #define hh(A,B,C,D,i,s) A = rot((A + h(B,C,D) + X[i] + C3),s)
  /src/external/gpl3/gcc.old/dist/gcc/config/spu/
spu.c 4559 rtx p0, p1, rot, addr0, addr1;
4562 rot = 0;
4585 rot = gen_reg_rtx (SImode);
4586 emit_insn (gen_addsi3 (rot, p0, p1));
4595 rot = gen_reg_rtx (SImode);
4596 emit_insn (gen_addsi3 (rot, p0, p1));
4605 rot = gen_reg_rtx (SImode);
4606 emit_insn (gen_addsi3 (rot, p0, p1));
4611 rot = p0;
4627 rot = p1
4549 rtx p0, p1, rot, addr0, addr1; local
4689 rtx addr, load, rot; local
5703 rtx rot, from, tmp; local
5790 rtx rot, from, offset; local
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/config/mcore/
mcore.cc 807 unsigned HOST_WIDE_INT bit, shf, rot;
871 rot = value;
878 c = rot << 31;
879 rot >>= 1;
880 rot &= 0x7FFFFFFF;
881 rot |= c; /* Simulate rotate. */
883 if (const_ok_for_mcore (rot))
886 *x = rot;
804 unsigned HOST_WIDE_INT bit, shf, rot; local
  /src/external/gpl3/gcc.old/dist/gcc/config/csky/
csky.cc 3666 unsigned HOST_WIDE_INT bit, shf, rot, lobits, hibits; local
3751 rot = value;
3757 c = rot << 31;
3758 rot >>= 1;
3759 rot &= 0x7FFFFFFF;
3760 rot |= c;
3762 if (const_ok_for_cskyv2 (rot) && !CSKY_CONST_OK_FOR_MOVIH (rot))
3765 *x = rot;
3860 rot = value
    [all...]
  /src/external/gpl3/binutils/dist/opcodes/
aarch64-asm.c 526 uint64_t rot = (info->imm.value - 90) / 180; local
527 assert (rot < 2U);
528 insert_field (self->fields[0], code, rot, inst->opcode->mask);
539 uint64_t rot = info->imm.value / 90; local
540 assert (rot < 4U);
541 insert_field (self->fields[0], code, rot, inst->opcode->mask);
aarch64-dis.c 883 uint64_t rot = extract_field (self->fields[0], code, 0);
884 assert (rot < 2U);
885 info->imm.value = rot * 180 + 90;
896 uint64_t rot = extract_field (self->fields[0], code, 0);
897 assert (rot < 4U);
898 info->imm.value = rot * 90;
882 uint64_t rot = extract_field (self->fields[0], code, 0); local
895 uint64_t rot = extract_field (self->fields[0], code, 0); local
  /src/external/gpl3/binutils.old/dist/opcodes/
aarch64-asm.c 528 uint64_t rot = (info->imm.value - 90) / 180; local
529 assert (rot < 2U);
530 insert_field (self->fields[0], code, rot, inst->opcode->mask);
541 uint64_t rot = info->imm.value / 90; local
542 assert (rot < 4U);
543 insert_field (self->fields[0], code, rot, inst->opcode->mask);
aarch64-dis.c 882 uint64_t rot = extract_field (self->fields[0], code, 0);
883 assert (rot < 2U);
884 info->imm.value = rot * 180 + 90;
895 uint64_t rot = extract_field (self->fields[0], code, 0);
896 assert (rot < 4U);
897 info->imm.value = rot * 90;
880 uint64_t rot = extract_field (self->fields[0], code, 0); local
893 uint64_t rot = extract_field (self->fields[0], code, 0); local
  /src/external/gpl3/binutils/dist/gas/config/
tc-mips.c 13838 unsigned int rot;
13842 rot = imm_expr.X_add_number & 0x3f;
13845 rot = (64 - rot) & 0x3f;
13846 if (rot >= 32)
13847 macro_build (NULL, "dror32", SHFT_FMT, op[0], op[1], rot - 32);
13849 macro_build (NULL, "dror", SHFT_FMT, op[0], op[1], rot);
13852 if (rot == 0)
13857 l = (rot < 0x20) ? "dsll" : "dsll32";
13858 rr = ((0x40 - rot) < 0x20) ? "dsrl" : "dsrl32"
13829 unsigned int rot; local
13860 unsigned int rot; local
13909 unsigned int rot; local
13939 unsigned int rot; local
    [all...]
tc-arm.c 6506 int rot; local
6517 if (parse_immediate (&s, &rot, 0, 24, false) == FAIL)
6520 switch (rot)
16256 unsigned rot = inst.relocs[0].exp.X_add_number;
16257 constraint (rot != 0 && rot != 90 && rot != 180 && rot != 270,
16268 inst.instruction |= (rot > 90) << 12;
16272 inst.instruction |= (rot == 90 || rot == 270)
16251 unsigned rot = inst.relocs[0].exp.X_add_number; local
17949 unsigned rot = inst.relocs[0].exp.X_add_number; local
21200 unsigned rot = inst.relocs[0].exp.X_add_number; local
21261 unsigned rot = inst.relocs[0].exp.X_add_number; local
    [all...]
  /src/external/gpl3/binutils.old/dist/gas/config/
tc-mips.c 13541 unsigned int rot;
13545 rot = imm_expr.X_add_number & 0x3f;
13548 rot = (64 - rot) & 0x3f;
13549 if (rot >= 32)
13550 macro_build (NULL, "dror32", SHFT_FMT, op[0], op[1], rot - 32);
13552 macro_build (NULL, "dror", SHFT_FMT, op[0], op[1], rot);
13555 if (rot == 0)
13560 l = (rot < 0x20) ? "dsll" : "dsll32";
13561 rr = ((0x40 - rot) < 0x20) ? "dsrl" : "dsrl32"
13532 unsigned int rot; local
13563 unsigned int rot; local
13612 unsigned int rot; local
13642 unsigned int rot; local
    [all...]
tc-arm.c 6509 int rot; local
6520 if (parse_immediate (&s, &rot, 0, 24, false) == FAIL)
6523 switch (rot)
16259 unsigned rot = inst.relocs[0].exp.X_add_number;
16260 constraint (rot != 0 && rot != 90 && rot != 180 && rot != 270,
16271 inst.instruction |= (rot > 90) << 12;
16275 inst.instruction |= (rot == 90 || rot == 270)
16254 unsigned rot = inst.relocs[0].exp.X_add_number; local
17952 unsigned rot = inst.relocs[0].exp.X_add_number; local
21203 unsigned rot = inst.relocs[0].exp.X_add_number; local
21264 unsigned rot = inst.relocs[0].exp.X_add_number; local
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/config/rs6000/
rs6000-p8swap.cc 259 rtx rot = SET_SRC (pat); local
261 if (GET_CODE (rot) == ROTATE && CONST_INT_P (XEXP (rot, 1))
262 && INTVAL (XEXP (rot, 1)) == 64)
  /src/external/apache2/llvm/dist/llvm/lib/Support/
APInt.cpp 1059 APInt rot = rotateAmt;
1063 rot = rotateAmt.zext(BitWidth);
1065 rot = rot.urem(APInt(rot.getBitWidth(), BitWidth));
1066 return rot.getLimitedValue(BitWidth);

Completed in 203 milliseconds

1 2