OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:rot
(Results
1 - 4
of
4
) sorted by relevancy
/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/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
...]
Completed in 22 milliseconds
Indexes created Mon Feb 23 08:20:23 UTC 2026