/external/libvterm/src/ |
D | state.c | 14 static void putglyph(VTermState *state, const uint32_t chars[], int width, VTermPos pos) in putglyph() argument 19 .protected_cell = state->protected_cell, in putglyph() 20 .dwl = state->lineinfo[pos.row].doublewidth, in putglyph() 21 .dhl = state->lineinfo[pos.row].doubleheight, in putglyph() 24 if(state->callbacks && state->callbacks->putglyph) in putglyph() 25 if((*state->callbacks->putglyph)(&info, pos, state->cbdata)) in putglyph() 31 static void updatecursor(VTermState *state, VTermPos *oldpos, int cancel_phantom) in updatecursor() argument 33 if(state->pos.col == oldpos->col && state->pos.row == oldpos->row) in updatecursor() 37 state->at_phantom = 0; in updatecursor() 39 if(state->callbacks && state->callbacks->movecursor) in updatecursor() [all …]
|
/external/u-boot/lib/ |
D | aes.c | 326 static void shift_rows(u8 *state) in shift_rows() argument 331 state[0] = sbox[state[0]]; in shift_rows() 332 state[4] = sbox[state[4]]; in shift_rows() 333 state[8] = sbox[state[8]]; in shift_rows() 334 state[12] = sbox[state[12]]; in shift_rows() 337 tmp = sbox[state[1]]; in shift_rows() 338 state[1] = sbox[state[5]]; in shift_rows() 339 state[5] = sbox[state[9]]; in shift_rows() 340 state[9] = sbox[state[13]]; in shift_rows() 341 state[13] = tmp; in shift_rows() [all …]
|
/external/libxml2/ |
D | xzlib.c | 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() 112 state->err = LZMA_MEM_ERROR; in xz_error() [all …]
|
/external/v8/third_party/zlib/contrib/optimizations/ |
D | inflate.c | 97 local void fixedtables OF((struct inflate_state FAR *state)); 109 struct inflate_state FAR *state; local 113 state = (struct inflate_state FAR *)strm->state; 114 if (state == Z_NULL || state->strm != strm || 115 state->mode < HEAD || state->mode > SYNC) 123 struct inflate_state FAR *state; local 126 state = (struct inflate_state FAR *)strm->state; 127 strm->total_in = strm->total_out = state->total = 0; 129 if (state->wrap) /* to support ill-conceived Java test suite */ 130 strm->adler = state->wrap & 1; [all …]
|
/external/zlib/contrib/optimizations/ |
D | inflate.c | 97 local void fixedtables OF((struct inflate_state FAR *state)); 109 struct inflate_state FAR *state; local 113 state = (struct inflate_state FAR *)strm->state; 114 if (state == Z_NULL || state->strm != strm || 115 state->mode < HEAD || state->mode > SYNC) 123 struct inflate_state FAR *state; local 126 state = (struct inflate_state FAR *)strm->state; 127 strm->total_in = strm->total_out = state->total = 0; 129 if (state->wrap) /* to support ill-conceived Java test suite */ 130 strm->adler = state->wrap & 1; [all …]
|
/external/v8/third_party/zlib/ |
D | inflate.c | 96 local void fixedtables OF((struct inflate_state FAR *state)); 108 struct inflate_state FAR *state; local 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 114 state->mode < HEAD || state->mode > SYNC) 122 struct inflate_state FAR *state; local 125 state = (struct inflate_state FAR *)strm->state; 126 strm->total_in = strm->total_out = state->total = 0; 128 if (state->wrap) /* to support ill-conceived Java test suite */ 129 strm->adler = state->wrap & 1; [all …]
|
D | gzread.c | 21 local int gz_load(state, buf, len, have) in gz_load() argument 22 gz_statep state; in gz_load() 35 ret = read(state->fd, buf + *have, get); 41 gz_error(state, Z_ERRNO, zstrerror()); 45 state->eof = 1; 56 local int gz_avail(state) in gz_avail() argument 57 gz_statep state; in gz_avail() 60 z_streamp strm = &(state->strm); 62 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 64 if (state->eof == 0) { [all …]
|
D | gzwrite.c | 17 local int gz_init(state) in gz_init() argument 18 gz_statep state; in gz_init() 21 z_streamp strm = &(state->strm); 24 state->in = (unsigned char *)malloc(state->want << 1); 25 if (state->in == NULL) { 26 gz_error(state, Z_MEM_ERROR, "out of memory"); 31 if (!state->direct) { 33 state->out = (unsigned char *)malloc(state->want); 34 if (state->out == NULL) { 35 free(state->in); [all …]
|
D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, 60 if (state == Z_NULL) return Z_MEM_ERROR; 62 strm->state = (struct internal_state FAR *)state; 63 state->dmax = 32768U; 64 state->wbits = (uInt)windowBits; 65 state->wsize = 1U << windowBits; 66 state->window = window; 67 state->wnext = 0; [all …]
|
/external/zlib/ |
D | inflate.c | 96 local void fixedtables OF((struct inflate_state FAR *state)); 108 struct inflate_state FAR *state; local 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 114 state->mode < HEAD || state->mode > SYNC) 122 struct inflate_state FAR *state; local 125 state = (struct inflate_state FAR *)strm->state; 126 strm->total_in = strm->total_out = state->total = 0; 128 if (state->wrap) /* to support ill-conceived Java test suite */ 129 strm->adler = state->wrap & 1; [all …]
|
D | gzread.c | 21 local int gz_load(state, buf, len, have) in gz_load() argument 22 gz_statep state; in gz_load() 35 ret = read(state->fd, buf + *have, get); 41 gz_error(state, Z_ERRNO, zstrerror()); 45 state->eof = 1; 56 local int gz_avail(state) in gz_avail() argument 57 gz_statep state; in gz_avail() 60 z_streamp strm = &(state->strm); 62 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 64 if (state->eof == 0) { [all …]
|
D | gzwrite.c | 17 local int gz_init(state) in gz_init() argument 18 gz_statep state; in gz_init() 21 z_streamp strm = &(state->strm); 24 state->in = (unsigned char *)malloc(state->want << 1); 25 if (state->in == NULL) { 26 gz_error(state, Z_MEM_ERROR, "out of memory"); 31 if (!state->direct) { 33 state->out = (unsigned char *)malloc(state->want); 34 if (state->out == NULL) { 35 free(state->in); [all …]
|
/external/python/cpython2/Modules/zlib/ |
D | inflate.c | 96 local void fixedtables OF((struct inflate_state FAR *state)); 108 struct inflate_state FAR *state; local 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 114 state->mode < HEAD || state->mode > SYNC) 122 struct inflate_state FAR *state; local 125 state = (struct inflate_state FAR *)strm->state; 126 strm->total_in = strm->total_out = state->total = 0; 128 if (state->wrap) /* to support ill-conceived Java test suite */ 129 strm->adler = state->wrap & 1; [all …]
|
D | gzread.c | 21 local int gz_load(state, buf, len, have) in gz_load() argument 22 gz_statep state; in gz_load() 35 ret = read(state->fd, buf + *have, get); 41 gz_error(state, Z_ERRNO, zstrerror()); 45 state->eof = 1; 56 local int gz_avail(state) in gz_avail() argument 57 gz_statep state; in gz_avail() 60 z_streamp strm = &(state->strm); 62 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 64 if (state->eof == 0) { [all …]
|
D | gzwrite.c | 17 local int gz_init(state) in gz_init() argument 18 gz_statep state; in gz_init() 21 z_streamp strm = &(state->strm); 24 state->in = (unsigned char *)malloc(state->want << 1); 25 if (state->in == NULL) { 26 gz_error(state, Z_MEM_ERROR, "out of memory"); 31 if (!state->direct) { 33 state->out = (unsigned char *)malloc(state->want); 34 if (state->out == NULL) { 35 free(state->in); [all …]
|
D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, 60 if (state == Z_NULL) return Z_MEM_ERROR; 62 strm->state = (struct internal_state FAR *)state; 63 state->dmax = 32768U; 64 state->wbits = (uInt)windowBits; 65 state->wsize = 1U << windowBits; 66 state->window = window; 67 state->wnext = 0; [all …]
|
/external/freetype/src/lzw/ |
D | ftzopen.c | 29 ft_lzwstate_refill( FT_LzwState state ) in ft_lzwstate_refill() argument 34 if ( state->in_eof ) in ft_lzwstate_refill() 37 count = FT_Stream_TryRead( state->source, in ft_lzwstate_refill() 38 state->buf_tab, in ft_lzwstate_refill() 39 state->num_bits ); /* WHY? */ in ft_lzwstate_refill() 41 state->buf_size = (FT_UInt)count; in ft_lzwstate_refill() 42 state->buf_total += count; in ft_lzwstate_refill() 43 state->in_eof = FT_BOOL( count < state->num_bits ); in ft_lzwstate_refill() 44 state->buf_offset = 0; in ft_lzwstate_refill() 46 state->buf_size <<= 3; in ft_lzwstate_refill() [all …]
|
/external/u-boot/lib/zlib/ |
D | inflate.c | 5 local void fixedtables OF((struct inflate_state FAR *state)); 10 struct inflate_state FAR *state; in inflateReset() local 12 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateReset() 13 state = (struct inflate_state FAR *)strm->state; in inflateReset() 14 strm->total_in = strm->total_out = state->total = 0; in inflateReset() 17 state->mode = HEAD; in inflateReset() 18 state->last = 0; in inflateReset() 19 state->havedict = 0; in inflateReset() 20 state->dmax = 32768U; in inflateReset() 21 state->head = Z_NULL; in inflateReset() [all …]
|
/external/mesa3d/src/imgui/ |
D | imstb_textedit.h | 456 static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) in stb_textedit_click() argument 460 if( state->single_line ) in stb_textedit_click() 467 state->cursor = stb_text_locate_coord(str, x, y); in stb_textedit_click() 468 state->select_start = state->cursor; in stb_textedit_click() 469 state->select_end = state->cursor; in stb_textedit_click() 470 state->has_preferred_x = 0; in stb_textedit_click() 474 static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) in stb_textedit_drag() argument 480 if( state->single_line ) in stb_textedit_drag() 487 if (state->select_start == state->select_end) in stb_textedit_drag() 488 state->select_start = state->cursor; in stb_textedit_drag() [all …]
|
/external/boringssl/src/crypto/poly1305/ |
D | poly1305.c | 54 poly1305_state *state) { in poly1305_aligned_state() argument 55 return (struct poly1305_state_st *)(((uintptr_t)state + 63) & ~63); in poly1305_aligned_state() 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() 91 mul32x32_64(state->h2, state->s3) + mul32x32_64(state->h3, state->s2) + in poly1305_update() [all …]
|
/external/webrtc/webrtc/common_audio/signal_processing/ |
D | resample_by_2_internal.c | 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() 61 state[2] = tmp0; in WebRtcSpl_DownBy2IntToShort() [all …]
|
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/ |
D | vmx_set_nested_state_test.c | 30 void test_nested_state(struct kvm_vm *vm, struct kvm_nested_state *state) in test_nested_state() argument 32 vcpu_nested_state_set(vm, VCPU_ID, state, false); in test_nested_state() 36 struct kvm_nested_state *state, in test_nested_state_expect_errno() argument 41 rv = vcpu_nested_state_set(vm, VCPU_ID, state, true); in test_nested_state_expect_errno() 49 struct kvm_nested_state *state) in test_nested_state_expect_einval() argument 51 test_nested_state_expect_errno(vm, state, EINVAL); in test_nested_state_expect_einval() 55 struct kvm_nested_state *state) in test_nested_state_expect_efault() argument 57 test_nested_state_expect_errno(vm, state, EFAULT); in test_nested_state_expect_efault() 60 void set_revision_id_for_vmcs12(struct kvm_nested_state *state, in set_revision_id_for_vmcs12() argument 64 memcpy(&state->data, &vmcs12_revision, sizeof(u32)); in set_revision_id_for_vmcs12() [all …]
|
/external/mesa3d/src/gallium/auxiliary/driver_trace/ |
D | tr_dump_state.c | 104 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state) in trace_dump_rasterizer_state() argument 109 if (!state) { in trace_dump_rasterizer_state() 116 trace_dump_member(bool, state, flatshade); in trace_dump_rasterizer_state() 117 trace_dump_member(bool, state, light_twoside); in trace_dump_rasterizer_state() 118 trace_dump_member(bool, state, clamp_vertex_color); in trace_dump_rasterizer_state() 119 trace_dump_member(bool, state, clamp_fragment_color); in trace_dump_rasterizer_state() 120 trace_dump_member(uint, state, front_ccw); in trace_dump_rasterizer_state() 121 trace_dump_member(uint, state, cull_face); in trace_dump_rasterizer_state() 122 trace_dump_member(uint, state, fill_front); in trace_dump_rasterizer_state() 123 trace_dump_member(uint, state, fill_back); in trace_dump_rasterizer_state() [all …]
|
/external/libsrtp2/crypto/cipher/ |
D | aes.c | 1677 static inline void aes_round(v128_t *state, const v128_t *round_key) in aes_round() argument 1684 column0 = T0[state->v8[0]] ^ T1[state->v8[5]] ^ T2[state->v8[10]] ^ in aes_round() 1685 T3[state->v8[15]]; in aes_round() 1687 column1 = T0[state->v8[4]] ^ T1[state->v8[9]] ^ T2[state->v8[14]] ^ in aes_round() 1688 T3[state->v8[3]]; in aes_round() 1690 column2 = T0[state->v8[8]] ^ T1[state->v8[13]] ^ T2[state->v8[2]] ^ in aes_round() 1691 T3[state->v8[7]]; in aes_round() 1693 column3 = T0[state->v8[12]] ^ T1[state->v8[1]] ^ T2[state->v8[6]] ^ in aes_round() 1694 T3[state->v8[11]]; in aes_round() 1696 state->v32[0] = column0 ^ round_key->v32[0]; in aes_round() [all …]
|
/external/perfetto/ui/src/common/ |
D | actions.ts | 62 function clearTraceState(state: StateDraft) { 63 const nextId = state.nextId; 64 const recordConfig = state.recordConfig; 65 const route = state.route; 66 const recordingTarget = state.recordingTarget; 67 const extensionInstalled = state.extensionInstalled; 68 const availableAdbDevices = state.availableAdbDevices; 69 const chromeCategories = state.chromeCategories; 70 const newEngineMode = state.newEngineMode; 72 Object.assign(state, createEmptyState()); [all …]
|