Home
last modified time | relevance | path

Searched full:state (Results 1 – 25 of 7684) sorted by relevance

12345678910>>...308

/external/libvterm/src/
Dstate.c20 static void putglyph(VTermState *state, const uint32_t chars[], int width, VTermPos pos) in putglyph() argument
25 .protected_cell = state->protected_cell, in putglyph()
26 .dwl = state->lineinfo[pos.row].doublewidth, in putglyph()
27 .dhl = state->lineinfo[pos.row].doubleheight, in putglyph()
30 if(state->callbacks && state->callbacks->putglyph) in putglyph()
31 if((*state->callbacks->putglyph)(&info, pos, state->cbdata)) in putglyph()
37 static void updatecursor(VTermState *state, VTermPos *oldpos, int cancel_phantom) in updatecursor() argument
39 if(state->pos.col == oldpos->col && state->pos.row == oldpos->row) in updatecursor()
43 state->at_phantom = 0; in updatecursor()
45 if(state->callbacks && state->callbacks->movecursor) in updatecursor()
[all …]
Dpen.c36 static void lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) in lookup_colour_ansi() argument
39 *col = state->colors[index]; in lookup_colour_ansi()
43 static void lookup_colour_palette(const VTermState *state, long index, VTermColor *col) in lookup_colour_palette() argument
47 lookup_colour_ansi(state, index, col); in lookup_colour_palette()
67 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTe… in lookup_colour() argument
84 lookup_colour_palette(state, argcount ? CSI_ARG_OR(args[0], -1) : -1, col); in lookup_colour()
96 static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type, VTermValue *val) in setpenattr() argument
105 if(state->callbacks && state->callbacks->setpenattr) in setpenattr()
106 (*state->callbacks->setpenattr)(attr, val, state->cbdata); in setpenattr()
109 static void setpenattr_bool(VTermState *state, VTermAttr attr, int boolean) in setpenattr_bool() argument
[all …]
/external/brotli/java/org/brotli/dec/
DDecode.java76 private static void decodeMetaBlockLength(BitReader br, State state) { in decodeMetaBlockLength() argument
77 state.inputEnd = BitReader.readBits(br, 1) == 1; in decodeMetaBlockLength()
78 state.metaBlockLength = 0; in decodeMetaBlockLength()
79 state.isUncompressed = false; in decodeMetaBlockLength()
80 state.isMetadata = false; in decodeMetaBlockLength()
81 if (state.inputEnd && BitReader.readBits(br, 1) != 0) { in decodeMetaBlockLength()
86 state.isMetadata = true; in decodeMetaBlockLength()
99 state.metaBlockLength |= bits << (i * 8); in decodeMetaBlockLength()
107 state.metaBlockLength |= bits << (i * 4); in decodeMetaBlockLength()
110 state.metaBlockLength++; in decodeMetaBlockLength()
[all …]
/external/bison/tests/
Dexisting.at23 # BISON-STDERR, LAST-STATE, LALR1-DIFF,
47 AT_TEST_TABLES_AND_PARSE([$2[: LALR(1)]], [[LALR]], [[last-state]],
52 AT_TEST_TABLES_AND_PARSE([$2[: IELR(1)]], [[IELR]], [[last-state]],
58 [[last-state,no-xml]],
434 dnl LAST-STATE
438 dnl Isocore map from LALR(1) state number to new state number plus descriptions
453 NAME shift, and go to state 9
454 - '$' shift, and go to state 24
455 + '$' shift, and go to state 320
462 NAME shift, and go to state 9
[all …]
/external/python/cpython2/Modules/zlib/
Dinflate.c26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
30 * - Add comments on state->bits assertion in inffast.c
95 local void fixedtables OF((struct inflate_state FAR *state));
107 struct inflate_state FAR *state; local
109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
110 state = (struct inflate_state FAR *)strm->state;
111 strm->total_in = strm->total_out = state->total = 0;
113 if (state->wrap) /* to support ill-conceived Java test suite */
114 strm->adler = state->wrap & 1;
115 state->mode = HEAD;
[all …]
Dgzread.c17 state->fd, and update state->eof, state->err, and state->msg as appropriate.
20 local int gz_load(state, buf, len, have) in gz_load() argument
21 gz_statep state; in gz_load()
30 ret = read(state->fd, buf + *have, len - *have);
36 gz_error(state, Z_ERRNO, zstrerror());
40 state->eof = 1;
51 local int gz_avail(state) in gz_avail() argument
52 gz_statep state; in gz_avail()
55 z_streamp strm = &(state->strm);
57 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
[all …]
Dgzwrite.c13 /* Initialize state for writing a gzip file. Mark initialization by setting
14 state->size to non-zero. Return -1 on failure or 0 on success. */
15 local int gz_init(state) in gz_init() argument
16 gz_statep state; in gz_init()
19 z_streamp strm = &(state->strm);
22 state->in = (unsigned char *)malloc(state->want);
23 if (state->in == NULL) {
24 gz_error(state, Z_MEM_ERROR, "out of memory");
28 /* only need output buffer and deflate state if compressing */
29 if (!state->direct) {
[all …]
Dgzlib.c74 /* Reset gzip file state */
75 local void gz_reset(state) in gz_reset() argument
76 gz_statep state; in gz_reset()
78 state->x.have = 0; /* no output data available */
79 if (state->mode == GZ_READ) { /* for reading ... */
80 state->eof = 0; /* not at end of file */
81 state->past = 0; /* have not read past end yet */
82 state->how = LOOK; /* look for gzip header */
84 state->seek = 0; /* no seek request pending */
85 gz_error(state, Z_OK, NULL); /* clear error */
[all …]
/external/zlib/src/
Dinflate.c26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
30 * - Add comments on state->bits assertion in inffast.c
95 local void fixedtables OF((struct inflate_state FAR *state));
107 struct inflate_state FAR *state; local
109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
110 state = (struct inflate_state FAR *)strm->state;
111 strm->total_in = strm->total_out = state->total = 0;
113 if (state->wrap) /* to support ill-conceived Java test suite */
114 strm->adler = state->wrap & 1;
115 state->mode = HEAD;
[all …]
Dgzread.c17 state->fd, and update state->eof, state->err, and state->msg as appropriate.
20 local int gz_load(state, buf, len, have) in gz_load() argument
21 gz_statep state; in gz_load()
30 ret = read(state->fd, buf + *have, len - *have);
36 gz_error(state, Z_ERRNO, zstrerror());
40 state->eof = 1;
51 local int gz_avail(state) in gz_avail() argument
52 gz_statep state; in gz_avail()
55 z_streamp strm = &(state->strm);
57 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
[all …]
Dgzwrite.c13 /* Initialize state for writing a gzip file. Mark initialization by setting
14 state->size to non-zero. Return -1 on failure or 0 on success. */
15 local int gz_init(state) in gz_init() argument
16 gz_statep state; in gz_init()
19 z_streamp strm = &(state->strm);
22 state->in = (unsigned char *)malloc(state->want);
23 if (state->in == NULL) {
24 gz_error(state, Z_MEM_ERROR, "out of memory");
28 /* only need output buffer and deflate state if compressing */
29 if (!state->direct) {
[all …]
Dgzlib.c74 /* Reset gzip file state */
75 local void gz_reset(state) in gz_reset() argument
76 gz_statep state; in gz_reset()
78 state->x.have = 0; /* no output data available */
79 if (state->mode == GZ_READ) { /* for reading ... */
80 state->eof = 0; /* not at end of file */
81 state->past = 0; /* have not read past end yet */
82 state->how = LOOK; /* look for gzip header */
84 state->seek = 0; /* no seek request pending */
85 gz_error(state, Z_OK, NULL); /* clear error */
[all …]
/external/pdfium/third_party/zlib_v128/
Dinflate.c26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
30 * - Add comments on state->bits assertion in inffast.c
95 local void fixedtables OF((struct inflate_state FAR *state));
107 struct inflate_state FAR *state; in inflateResetKeep() local
109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateResetKeep()
110 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep()
111 strm->total_in = strm->total_out = state->total = 0; in inflateResetKeep()
113 if (state->wrap) /* to support ill-conceived Java test suite */ in inflateResetKeep()
114 strm->adler = state->wrap & 1; in inflateResetKeep()
115 state->mode = HEAD; in inflateResetKeep()
[all …]
Dgzread.c17 state->fd, and update state->eof, state->err, and state->msg as appropriate.
21 gz_statep state, in gz_load() argument
30 ret = read(state->fd, buf + *have, len - *have); in gz_load()
36 gz_error(state, Z_ERRNO, zstrerror()); in gz_load()
40 state->eof = 1; in gz_load()
52 gz_statep state) in gz_avail() argument
55 z_streamp strm = &(state->strm); in gz_avail()
57 if (state->err != Z_OK && state->err != Z_BUF_ERROR) in gz_avail()
59 if (state->eof == 0) { in gz_avail()
61 unsigned char *p = state->in; in gz_avail()
[all …]
Dgzwrite.c13 /* Initialize state for writing a gzip file. Mark initialization by setting
14 state->size to non-zero. Return -1 on failure or 0 on success. */
16 gz_statep state) in gz_init() argument
19 z_streamp strm = &(state->strm); in gz_init()
22 state->in = (unsigned char *)malloc(state->want); in gz_init()
23 if (state->in == NULL) { in gz_init()
24 gz_error(state, Z_MEM_ERROR, "out of memory"); in gz_init()
28 /* only need output buffer and deflate state if compressing */ in gz_init()
29 if (!state->direct) { in gz_init()
31 state->out = (unsigned char *)malloc(state->want); in gz_init()
[all …]
/external/syslinux/com32/lib/zlib/
Dinflate.c26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
30 * - Add comments on state->bits assertion in inffast.c
95 local void fixedtables OF((struct inflate_state FAR *state));
106 struct inflate_state FAR *state; local
108 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
109 state = (struct inflate_state FAR *)strm->state;
110 strm->total_in = strm->total_out = state->total = 0;
113 state->mode = HEAD;
114 state->last = 0;
115 state->havedict = 0;
[all …]
/external/boringssl/src/crypto/poly1305/
Dpoly1305.c54 poly1305_state *state) { in poly1305_aligned_state() argument
55 return (struct poly1305_state_st *)(((uintptr_t)state + 63) & ~63); in poly1305_aligned_state()
58 /* poly1305_blocks updates |state| given some amount of input data. This
61 static void poly1305_update(struct poly1305_state_st *state, const uint8_t *in, in poly1305_update() argument
83 state->h0 += t0 & 0x3ffffff; in poly1305_update()
84 state->h1 += ((((uint64_t)t1 << 32) | t0) >> 26) & 0x3ffffff; in poly1305_update()
85 state->h2 += ((((uint64_t)t2 << 32) | t1) >> 20) & 0x3ffffff; in poly1305_update()
86 state->h3 += ((((uint64_t)t3 << 32) | t2) >> 14) & 0x3ffffff; in poly1305_update()
87 state->h4 += (t3 >> 8) | (1 << 24); in poly1305_update()
90 t[0] = mul32x32_64(state->h0, state->r0) + mul32x32_64(state->h1, state->s4) + in poly1305_update()
[all …]
/external/mesa3d/src/gallium/drivers/trace/
Dtr_dump_state.c103 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state) in trace_dump_rasterizer_state() argument
108 if (!state) { in trace_dump_rasterizer_state()
115 trace_dump_member(bool, state, flatshade); in trace_dump_rasterizer_state()
116 trace_dump_member(bool, state, light_twoside); in trace_dump_rasterizer_state()
117 trace_dump_member(bool, state, clamp_vertex_color); in trace_dump_rasterizer_state()
118 trace_dump_member(bool, state, clamp_fragment_color); in trace_dump_rasterizer_state()
119 trace_dump_member(uint, state, front_ccw); in trace_dump_rasterizer_state()
120 trace_dump_member(uint, state, cull_face); in trace_dump_rasterizer_state()
121 trace_dump_member(uint, state, fill_front); in trace_dump_rasterizer_state()
122 trace_dump_member(uint, state, fill_back); in trace_dump_rasterizer_state()
[all …]
/external/wpa_supplicant_8/src/utils/
Dstate_machine.h2 * wpa_supplicant/hostapd - State machine definitions
9 * implement a state machine. In addition to including this header file, each
10 * file implementing a state machine must define STATE_MACHINE_DATA to be the
11 * data structure including state variables (enum machine_state,
14 * a group of state machines with shared data structure, STATE_MACHINE_ADDR
16 * SM_ENTRY_M macro can be used to define similar group of state machines
24 * SM_STATE - Declaration of a state machine function
25 * @machine: State machine name
26 * @state: State machine state
28 * This macro is used to declare a state machine function. It is used in place
[all …]
/external/libxml2/
Dxzlib.c50 /* internal lzma file state data structure */
89 xz_error(xz_statep state, int err, const char *msg) in xz_error() argument
92 if (state->msg != NULL) { in xz_error()
93 if (state->err != LZMA_MEM_ERROR) in xz_error()
94 xmlFree(state->msg); in xz_error()
95 state->msg = NULL; in xz_error()
99 state->err = err; in xz_error()
105 state->msg = (char *) msg; in xz_error()
110 if ((state->msg = in xz_error()
111 xmlMalloc(strlen(state->path) + strlen(msg) + 3)) == NULL) { in xz_error()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_validate.c41 * Per-register validation state.
63 /* map of register -> validation state (struct above) */
107 log_error(validate_state *state, const char *cond, const char *file, int line) in log_error() argument
111 if (state->instr) in log_error()
112 obj = state->instr; in log_error()
113 else if (state->var) in log_error()
114 obj = state->var; in log_error()
118 char *msg = ralloc_asprintf(state->errors, "error: %s (%s:%d)", in log_error()
121 _mesa_hash_table_insert(state->errors, obj, msg); in log_error()
124 #define validate_assert(state, cond) do { \ argument
[all …]
/external/python/cpython2/Modules/expat/
Dxmlrole.c93 #define setTopLevel(state) \ argument
94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset) argument
101 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
125 static int FASTCALL common(PROLOG_STATE *state, int tok);
128 prolog0(PROLOG_STATE *state, in prolog0() argument
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
142 state->handler = prolog1; in prolog0()
145 state->handler = prolog1; in prolog0()
[all …]
/external/expat/lib/
Dxmlrole.c93 #define setTopLevel(state) \ argument
94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset) argument
101 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
125 static int FASTCALL common(PROLOG_STATE *state, int tok);
128 prolog0(PROLOG_STATE *state, in prolog0() argument
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
142 state->handler = prolog1; in prolog0()
145 state->handler = prolog1; in prolog0()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_dump_state.c293 util_dump_resource(FILE *stream, const struct pipe_resource *state) in util_dump_resource() argument
295 if (!state) { in util_dump_resource()
302 util_dump_member(stream, enum_tex_target, state, target); in util_dump_resource()
303 util_dump_member(stream, format, state, format); in util_dump_resource()
305 util_dump_member(stream, uint, state, width0); in util_dump_resource()
306 util_dump_member(stream, uint, state, height0); in util_dump_resource()
307 util_dump_member(stream, uint, state, depth0); in util_dump_resource()
308 util_dump_member(stream, uint, state, array_size); in util_dump_resource()
310 util_dump_member(stream, uint, state, last_level); in util_dump_resource()
311 util_dump_member(stream, uint, state, nr_samples); in util_dump_resource()
[all …]
/external/webrtc/webrtc/common_audio/signal_processing/
Dresample_by_2_internal.c29 // state: filter state array; length = 8
32 int32_t *state) in WebRtcSpl_DownBy2IntToShort() argument
43 diff = tmp0 - state[1]; in WebRtcSpl_DownBy2IntToShort()
46 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_DownBy2IntToShort()
47 state[0] = tmp0; in WebRtcSpl_DownBy2IntToShort()
48 diff = tmp1 - state[2]; in WebRtcSpl_DownBy2IntToShort()
53 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_DownBy2IntToShort()
54 state[1] = tmp1; in WebRtcSpl_DownBy2IntToShort()
55 diff = tmp0 - state[3]; in WebRtcSpl_DownBy2IntToShort()
60 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_DownBy2IntToShort()
[all …]

12345678910>>...308