Home
last modified time | relevance | path

Searched refs:sr (Results 1 – 25 of 432) sorted by relevance

12345678910>>...18

/external/libgsm/src/
Dgsm_encode.c112 uword sr; variable
114 sr = 0;
115 sr = sr >> 6 | LARc[0] << 10;
116 sr = sr >> 6 | LARc[1] << 10;
117 *c++ = sr >> 4;
118 sr = sr >> 5 | LARc[2] << 11;
119 *c++ = sr >> 7;
120 sr = sr >> 5 | LARc[3] << 11;
121 sr = sr >> 4 | LARc[4] << 12;
122 *c++ = sr >> 6;
[all …]
Dgsm_implode.c118 uword sr = 0; variable
120 sr = sr >> 6 | LARc[0] << 10;
121 sr = sr >> 6 | LARc[1] << 10;
122 *c++ = sr >> 4;
123 sr = sr >> 5 | LARc[2] << 11;
124 *c++ = sr >> 7;
125 sr = sr >> 5 | LARc[3] << 11;
126 sr = sr >> 4 | LARc[4] << 12;
127 *c++ = sr >> 6;
128 sr = sr >> 4 | LARc[5] << 12;
[all …]
Dgsm_explode.c25 uword sr = 0; variable
29 sr = *c++;
30 LARc[0] = sr & 0x3f; sr >>= 6;
31 sr |= (uword)*c++ << 2;
32 LARc[1] = sr & 0x3f; sr >>= 6;
33 sr |= (uword)*c++ << 4;
34 LARc[2] = sr & 0x1f; sr >>= 5;
35 LARc[3] = sr & 0x1f; sr >>= 5;
36 sr |= (uword)*c++ << 2;
37 LARc[4] = sr & 0xf; sr >>= 4;
[all …]
Dgsm_decode.c21 uword sr = 0; variable
26 sr = *c++;
27 LARc[0] = sr & 0x3f; sr >>= 6;
28 sr |= (uword)*c++ << 2;
29 LARc[1] = sr & 0x3f; sr >>= 6;
30 sr |= (uword)*c++ << 4;
31 LARc[2] = sr & 0x1f; sr >>= 5;
32 LARc[3] = sr & 0x1f; sr >>= 5;
33 sr |= (uword)*c++ << 2;
34 LARc[4] = sr & 0xf; sr >>= 4;
[all …]
/external/libunwind/src/ia64/
DGparser.c30 struct ia64_state_record *sr,
43 push (struct ia64_state_record *sr) in push() argument
53 memcpy (rs, &sr->curr, sizeof (*rs)); in push()
54 sr->curr.next = rs; in push()
58 pop (struct ia64_state_record *sr) in pop() argument
60 struct ia64_reg_state *rs = sr->curr.next; in pop()
67 memcpy (&sr->curr, rs, sizeof (*rs)); in pop()
200 finish_prologue (struct ia64_state_record *sr) in finish_prologue() argument
210 reg = sr->curr.reg + unw.save_order[i]; in finish_prologue()
214 reg->val = sr->gr_save_loc++; in finish_prologue()
[all …]
DGscript.c244 struct ia64_state_record *sr) in script_finalize() argument
246 script->pr_mask = sr->pr_mask; in script_finalize()
247 script->pr_val = sr->pr_val; in script_finalize()
264 compile_reg (struct ia64_state_record *sr, int i, struct ia64_reg_info *r, in compile_reg() argument
272 if (r->where == IA64_WHERE_NONE || r->when >= sr->when_target) in compile_reg()
394 sort_regs (struct ia64_state_record *sr, int regorder[]) in sort_regs() argument
402 if (sr->curr.reg[r].where == IA64_WHERE_NONE in sort_regs()
403 || sr->curr.reg[r].when >= sr->when_target) in sort_regs()
416 max_when = sr->curr.reg[max_reg].when; in sort_regs()
419 if (sr->curr.reg[regorder[j]].when > max_when) in sort_regs()
[all …]
DGis_signal_frame.c32 struct ia64_state_record sr; in unw_is_signal_frame() local
42 ret = ia64_create_state_record (c, &sr); in unw_is_signal_frame()
48 ret = (sr.abi_marker != 0); in unw_is_signal_frame()
50 ia64_free_state_record (&sr); in unw_is_signal_frame()
/external/apache-harmony/security/src/test/api/java.injected/java/security/
DSecureRandomTest.java56 SecureRandom sr = new SecureRandom(); in testNext() local
57 if (sr.next(1) != 1 || sr.next(2) != 3 || sr.next(3) != 7) { in testNext()
66 SecureRandom sr = new SecureRandom(); in testSetSeedlong() local
67 sr.setSeed(12345); in testSetSeedlong()
75 SecureRandom sr = new SecureRandom(); in testNextBytes() local
76 sr.nextBytes(b); in testNextBytes()
88 SecureRandom sr = new SecureRandom(); in testSecureRandom() local
89 if (!sr.getAlgorithm().equals("someRandom") || in testSecureRandom()
90 sr.getProvider() != p) { in testSecureRandom()
110 SecureRandom sr = null; in testGetInstanceString() local
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DSecureRandom_ImplTest.java67 SecureRandom sr = new SecureRandom(); in testSetSeedlong() local
68 sr.setSeed(0); in testSetSeedlong()
69 sr.setSeed(-1); in testSetSeedlong()
70 sr.setSeed(11111111111L); in testSetSeedlong()
74 SecureRandom sr = new SecureRandom(); in testNextBytes() local
75 sr.nextBytes(new byte[20]); in testNextBytes()
76 sr.nextBytes(new byte[1]); in testNextBytes()
80 sr.nextBytes(null); in testNextBytes()
83 sr.nextBytes(new byte[5]); in testNextBytes()
103 SecureRandom sr = new SecureRandom(); in testGetAlgorithm() local
[all …]
/external/compiler-rt/lib/builtins/
Dudivmoddi4.c34 unsigned sr; in __udivmoddi4() local
102 sr = __builtin_clz(d.s.high) - __builtin_clz(n.s.high); in __udivmoddi4()
104 if (sr > n_uword_bits - 2) in __udivmoddi4()
110 ++sr; in __udivmoddi4()
114 q.s.high = n.s.low << (n_uword_bits - sr); in __udivmoddi4()
116 r.s.high = n.s.high >> sr; in __udivmoddi4()
117 r.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
133 sr = __builtin_ctz(d.s.low); in __udivmoddi4()
134 q.s.high = n.s.high >> sr; in __udivmoddi4()
135 q.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
[all …]
Dudivmodti4.c36 unsigned sr; in __udivmodti4() local
104 sr = __builtin_clzll(d.s.high) - __builtin_clzll(n.s.high); in __udivmodti4()
106 if (sr > n_udword_bits - 2) in __udivmodti4()
112 ++sr; in __udivmodti4()
116 q.s.high = n.s.low << (n_udword_bits - sr); in __udivmodti4()
118 r.s.high = n.s.high >> sr; in __udivmodti4()
119 r.s.low = (n.s.high << (n_udword_bits - sr)) | (n.s.low >> sr); in __udivmodti4()
135 sr = __builtin_ctzll(d.s.low); in __udivmodti4()
136 q.s.high = n.s.high >> sr; in __udivmodti4()
137 q.s.low = (n.s.high << (n_udword_bits - sr)) | (n.s.low >> sr); in __udivmodti4()
[all …]
Dudivsi3.c30 unsigned sr; in ARM_EABI_FNALIAS() local
36 sr = __builtin_clz(d) - __builtin_clz(n); in ARM_EABI_FNALIAS()
38 if (sr > n_uword_bits - 1) /* d > r */ in ARM_EABI_FNALIAS()
40 if (sr == n_uword_bits - 1) /* d == 1 */ in ARM_EABI_FNALIAS()
42 ++sr; in ARM_EABI_FNALIAS()
45 q = n << (n_uword_bits - sr); in ARM_EABI_FNALIAS()
46 r = n >> sr; in ARM_EABI_FNALIAS()
48 for (; sr > 0; --sr) in ARM_EABI_FNALIAS()
/external/valgrind/include/
Dpub_tool_basics.h188 static inline Bool sr_isError ( SysRes sr ) { in sr_isError() argument
189 return sr._isError; in sr_isError()
191 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() argument
192 return sr._isError ? 0 : sr._val; in sr_Res()
195 static inline UWord sr_ResEx ( SysRes sr ) { in sr_ResEx() argument
196 return sr._isError ? 0 : sr._valEx; in sr_ResEx()
199 static inline UWord sr_Err ( SysRes sr ) { in sr_Err() argument
200 return sr._isError ? sr._val : 0; in sr_Err()
210 static inline Bool sr_isError ( SysRes sr ) { in sr_isError() argument
211 switch (sr._mode) { in sr_isError()
[all …]
/external/clang/test/SemaCXX/
Doverloaded-builtin-operators.cpp79 void g(ShortRef sr, LongRef lr, E2Ref e2_ref, XpmfRef pmf_ref) { in g() argument
81 short s1 = sr++; in g()
87 short& sr1 = (sr *= lr); in g()
88 volatile long& lr1 = (lr *= sr); in g()
99 short& sr2 = (sr %= lr); in g()
100 volatile long& lr2 = (lr <<= sr); in g()
102 bool b1 = (sr && lr) || (sr || lr); in g()
121 void test_with_ptrs(VolatileIntPtr vip, ConstIntPtr cip, ShortRef sr, in test_with_ptrs() argument
123 const int& cir1 = cip[sr]; in test_with_ptrs()
124 const int& cir2 = sr[cip]; in test_with_ptrs()
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_render_stencilref.c57 struct r300_stencilref_context *sr = r300->stencilref_fallback; in r300_stencilref_begin() local
62 sr->rs_cull_mode = rs->cb_main[rs->cull_mode_index]; in r300_stencilref_begin()
63 sr->zb_stencilrefmask = dsa->stencil_ref_mask; in r300_stencilref_begin()
64 sr->ref_value_front = r300->stencil_ref.ref_value[0]; in r300_stencilref_begin()
75 struct r300_stencilref_context *sr = r300->stencilref_fallback; in r300_stencilref_switch_side() local
79 rs->cb_main[rs->cull_mode_index] = sr->rs_cull_mode | R300_CULL_FRONT; in r300_stencilref_switch_side()
90 struct r300_stencilref_context *sr = r300->stencilref_fallback; in r300_stencilref_end() local
95 rs->cb_main[rs->cull_mode_index] = sr->rs_cull_mode; in r300_stencilref_end()
96 dsa->stencil_ref_mask = sr->zb_stencilrefmask; in r300_stencilref_end()
97 r300->stencil_ref.ref_value[0] = sr->ref_value_front; in r300_stencilref_end()
[all …]
/external/slf4j/osgi-over-slf4j/src/main/java/org/slf4j/osgi/logservice/impl/
DLogServiceImpl.java125 public void log(ServiceReference sr, int level, String message) { in log() argument
130 delegate.debug(createMessage(sr, message)); in log()
135 delegate.error(createMessage(sr, message)); in log()
140 delegate.info(createMessage(sr, message)); in log()
145 delegate.warn(createMessage(sr, message)); in log()
160 private String createMessage(ServiceReference sr, String message) { in createMessage() argument
163 if (sr != null) { in createMessage()
164 output.append('[').append(sr.toString()).append(']'); in createMessage()
179 public void log(ServiceReference sr, int level, String message, Throwable exception) { in log() argument
184 delegate.debug(createMessage(sr, message), exception); in log()
[all …]
/external/libunwind/src/dwarf/
DGparser.c51 set_reg (dwarf_state_record_t *sr, unw_word_t regnum, dwarf_where_t where, in set_reg() argument
54 sr->rs_current.reg[regnum].where = where; in set_reg()
55 sr->rs_current.reg[regnum].val = val; in set_reg()
60 run_cfi_program (struct dwarf_cursor *c, dwarf_state_record_t *sr, in run_cfi_program() argument
154 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
163 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
172 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
186 sr->rs_current.reg[regnum] = sr->rs_initial.reg[regnum]; in run_cfi_program()
200 sr->rs_current.reg[regnum] = sr->rs_initial.reg[regnum]; in run_cfi_program()
219 set_reg (sr, regnum, DWARF_WHERE_UNDEF, 0); in run_cfi_program()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/
DSHA1PRNG_SecureRandomTest.java39 private static SecureRandom sr; // fields used by tests field in SHA1PRNG_SecureRandomTest
47 sr = SecureRandom.getInstance(algorithm, provider); in setUp()
58 sr.generateSeed(-1); in testGenerateSeedint01()
74 byte[] myBytes = sr.generateSeed(i); in testGenerateSeedint02()
93 myBytes1 = sr.generateSeed(i); in testGenerateSeedint03()
94 myBytes2 = sr.generateSeed(i); in testGenerateSeedint03()
113 sr.nextBytes(null); in testNextBytesbyteArray01()
140 sr.setSeed(myBytes); in testNextBytesbyteArray02()
147 sr.nextBytes(myBytes1); in testNextBytesbyteArray02()
167 sr.nextBytes(bytes1[k]); in testNextBytesbyteArray02()
[all …]
/external/opencv/otherlibs/highgui/
Dhighgui.h290 CV_INLINE CvRect RectToCvRect( RECT sr ); in LOAD_CHDL()
291 CV_INLINE CvRect RectToCvRect( RECT sr ) in LOAD_CHDL()
293 sr = NormalizeRect( sr ); in LOAD_CHDL()
294 return cvRect( sr.left, sr.top, sr.right - sr.left, sr.bottom - sr.top ); in LOAD_CHDL()
297 CV_INLINE RECT CvRectToRect( CvRect sr ); in LOAD_CHDL()
298 CV_INLINE RECT CvRectToRect( CvRect sr ) in LOAD_CHDL()
301 dr.left = sr.x; in LOAD_CHDL()
302 dr.top = sr.y; in LOAD_CHDL()
303 dr.right = sr.x + sr.width; in LOAD_CHDL()
304 dr.bottom = sr.y + sr.height; in LOAD_CHDL()
/external/skia/include/core/
DSkDither.h78 unsigned sr = SkGetPackedR32(c); in SkDitherARGB32For565() local
81 sr = SkDITHER_R32_FOR_565(sr, dither); in SkDitherARGB32For565()
85 return SkPackARGB32(sa, sr, sg, sb); in SkDitherARGB32For565()
92 unsigned sr = SkGetPackedR32(c); in SkDitherRGB32For565() local
95 sr = SkDITHER_R32_FOR_565(sr, dither); in SkDitherRGB32For565()
99 return SkPackARGB32(0xFF, sr, sg, sb); in SkDitherRGB32For565()
116 unsigned sr = SkGetPackedR32(c); in SkDitherRGB32To565() local
119 sr = SkDITHER_R32To565(sr, dither); in SkDitherRGB32To565()
123 return SkPackRGB16(sr, sg, sb); in SkDitherRGB32To565()
131 unsigned sr = SkGetPackedR32(c); in SkDitherARGB32To565() local
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DDataReadWriteTest.java56 StringReader sr = new StringReader(str); in testOpenClose() local
57 XMLRecordReader xrr = new XMLRecordReader(sr); in testOpenClose()
71 StringReader sr = new StringReader(str); in testBool() local
72 XMLRecordReader xrr = new XMLRecordReader(sr); in testBool()
104 StringReader sr = new StringReader(str); in testBoolArray() local
105 XMLRecordReader xrr = new XMLRecordReader(sr); in testBoolArray()
125 StringReader sr = new StringReader(str); in testCharacter() local
126 XMLRecordReader xrr = new XMLRecordReader(sr); in testCharacter()
158 StringReader sr = new StringReader(str); in testCharacterArray() local
159 XMLRecordReader xrr = new XMLRecordReader(sr); in testCharacterArray()
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_bsd.c1122 struct ieee80211_scan_req sr; in wpa_driver_bsd_scan() local
1151 os_memset(&sr, 0, sizeof(sr)); in wpa_driver_bsd_scan()
1152 sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE | IEEE80211_IOC_SCAN_ONCE | in wpa_driver_bsd_scan()
1154 sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER; in wpa_driver_bsd_scan()
1156 sr.sr_nssid = params->num_ssids; in wpa_driver_bsd_scan()
1159 if (sr.sr_nssid > IEEE80211_IOC_SCAN_MAX_SSID) in wpa_driver_bsd_scan()
1160 sr.sr_nssid = IEEE80211_IOC_SCAN_MAX_SSID; in wpa_driver_bsd_scan()
1164 sr.sr_flags |= IEEE80211_IOC_SCAN_CHECK; in wpa_driver_bsd_scan()
1166 for (i = 0; i < sr.sr_nssid; i++) { in wpa_driver_bsd_scan()
1167 sr.sr_ssid[i].len = params->ssids[i].ssid_len; in wpa_driver_bsd_scan()
[all …]
/external/skia/src/core/
DSkBlitRow_D16.cpp118 int sr = SkGetPackedR32(c); in S32_D565_Blend_Dither() local
121 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither()
126 *dst++ = SkPackRGB16(SkAlphaBlend(sr, SkGetPackedR16(d), scale), in S32_D565_Blend_Dither()
149 unsigned sr = SkGetPackedR32(c); in S32A_D565_Opaque_Dither() local
152 sr = SkDITHER_R32_FOR_565(sr, d); in S32A_D565_Opaque_Dither()
156 uint32_t src_expanded = (sg << 24) | (sr << 13) | (sb << 2); in S32A_D565_Opaque_Dither()
186 int sr = SkGetPackedR32(c); in S32A_D565_Blend_Dither() local
189 sr = SkDITHER_R32To565(sr, dither); in S32A_D565_Blend_Dither()
193 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
/external/messageformat/javatests/com/android/messageformat/
DSimpleMessageFormatTest.java33 Locale sr = new Locale("sr"); in testPlural() local
39 MessageFormat.formatNamedArgs(sr, msg, "num", 1, "name", "Peter")); in testPlural()
41 MessageFormat.formatNamedArgs(sr, msg, "num", 2, "name", "Paul")); in testPlural()
43 MessageFormat.formatNamedArgs(sr, msg, "num", 22, "name", "Mary")); in testPlural()
45 MessageFormat.formatNamedArgs(sr, msg, "num", 33, "name", "John")); in testPlural()
47 MessageFormat.formatNamedArgs(sr, msg, "num", 6, "name", "Yoko")); in testPlural()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_depth.c99 struct pipe_stencil_ref sr; in update_depth_stencil_alpha() local
103 memset(&sr, 0, sizeof(sr)); in update_depth_stencil_alpha()
119 sr.ref_value[0] = ctx->Stencil.Ref[0] & 0xff; in update_depth_stencil_alpha()
130 sr.ref_value[1] = ctx->Stencil.Ref[back] & 0xff; in update_depth_stencil_alpha()
138 sr.ref_value[1] = sr.ref_value[0]; in update_depth_stencil_alpha()
149 cso_set_stencil_ref(st->cso_context, &sr); in update_depth_stencil_alpha()

12345678910>>...18