/external/icu/icu4c/source/test/intltest/ |
H A D | nmfmtrt.cpp | 76 * Return a random value from -range..+range. 79 NumberFormatRoundTripTest::randomDouble(double range) argument 82 return (2.0 * range * a) - range; 183 // the double will stay in range.
|
/external/iptables/extensions/ |
H A D | libipt_DNAT.c | 21 /* Dest NAT data consists of a multi-range, indicating where to map 47 append_range(struct ipt_natinfo *info, const struct nf_nat_ipv4_range *range) argument 52 size = XT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range)); 59 info->mr.range[info->mr.rangesize] = *range; 69 struct nf_nat_ipv4_range range; local 76 memset(&range, 0, sizeof(range)); 86 range.flags |= NF_NAT_RANGE_PROTO_SPECIFIED; 100 range [all...] |
H A D | libipt_SNAT.c | 21 /* Source NAT data consists of a multi-range, indicating where to map 47 append_range(struct ipt_natinfo *info, const struct nf_nat_ipv4_range *range) argument 52 size = XT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range)); 59 info->mr.range[info->mr.rangesize] = *range; 69 struct nf_nat_ipv4_range range; local 76 memset(&range, 0, sizeof(range)); 86 range.flags |= NF_NAT_RANGE_PROTO_SPECIFIED; 100 range [all...] |
H A D | libxt_iprange.c | 31 "[!] --src-range ip[-ip] Match source IP in the specified range\n" 32 "[!] --dst-range ip[-ip] Match destination IP in the specified range\n"); 36 {.name = "src-range", .id = O_SRC_RANGE, .type = XTTYPE_STRING, 38 {.name = "dst-range", .id = O_DST_RANGE, .type = XTTYPE_STRING, 44 iprange_parse_spec(const char *from, const char *to, union nf_inet_addr *range, argument 52 memset(range, 0, sizeof(union nf_inet_addr) * 2); 60 range[i].in6 = *ia6; 68 range[ 73 iprange_parse_range(const char *oarg, union nf_inet_addr *range, uint8_t family, const char *optname) argument 99 union nf_inet_addr range[2]; local 163 print_iprange(const struct ipt_iprange *range) argument [all...] |
H A D | libxt_multiport.c | 109 char *buffer, *cp, *next, *range; local 122 range = strchr(cp, ':'); 123 if (range) { 127 *range++ = '\0'; 130 if (range) { 132 multiinfo->ports[++i] = xtables_parse_port(range, proto);
|
/external/iptables/libipq/ |
H A D | libipq.c | 269 uint8_t mode, size_t range) 282 req.pm.msg.mode.range = range; 268 ipq_set_mode(const struct ipq_handle *h, uint8_t mode, size_t range) argument
|
/external/lldb/source/API/ |
H A D | SBBlock.cpp | 219 AddressRange range; local 220 if (m_opaque_ptr->GetRangeAtIndex(idx, range)) 222 sb_addr.ref() = range.GetBaseAddress(); 234 AddressRange range; local 235 if (m_opaque_ptr->GetRangeAtIndex(idx, range)) 237 sb_addr.ref() = range.GetBaseAddress(); 238 sb_addr.ref().Slide(range.GetByteSize());
|
/external/lldb/source/Symbol/ |
H A D | DWARFCallFrameInfo.cpp | 67 DWARFCallFrameInfo::GetAddressRange (Address addr, AddressRange &range) argument 83 range = AddressRange(fde_entry->base, fde_entry->size, m_objfile.GetSectionList()); 425 AddressRange range (range_base, m_objfile.GetAddressByteSize(), m_objfile.GetSectionList()); 426 range.SetByteSize (range_len); 439 unwind_plan.SetPlanValidAddressRange (range);
|
H A D | Symbol.cpp | 89 const AddressRange &range, 102 m_size_is_valid (size_is_valid || range.GetByteSize() > 0), 106 m_addr_range (range), 209 s->PutCString (", range = "); 312 m_type_data = sc.line_entry.range.GetByteSize(); 337 addr.Slide (sc_temp.line_entry.range.GetByteSize()); 338 total_offset += sc_temp.line_entry.range.GetByteSize(); 79 Symbol( uint32_t symID, const char *name, bool name_is_mangled, SymbolType type, bool external, bool is_debug, bool is_trampoline, bool is_artificial, const AddressRange &range, bool size_is_valid, uint32_t flags ) argument
|
/external/lldb/source/Target/ |
H A D | Memory.cpp | 90 InvalidRanges::Entry range (base_addr, byte_size); 91 m_invalid_ranges.Append(range); 420 std::pair<PermissionsToBlockMap::iterator, PermissionsToBlockMap::iterator> range = m_memory_map.equal_range (permissions); local 422 for (PermissionsToBlockMap::iterator pos = range.first; pos != range.second; ++pos)
|
H A D | ThreadPlanStepInRange.cpp | 36 // ThreadPlanStepInRange: Step through a stack range, either stepping over or into 43 const AddressRange &range, 47 ThreadPlanStepRange (ThreadPlan::eKindStepInRange, "Step Range stepping in", thread, range, addr_context, stop_others), 58 const AddressRange &range, 63 ThreadPlanStepRange (ThreadPlan::eKindStepInRange, "Step Range stepping in", thread, range, addr_context, stop_others), 83 s->Printf ("Stepping through range (stepping into functions): "); 166 // If we're still in the range, keep going, either by running to the next branch breakpoint, or by 40 ThreadPlanStepInRange( Thread &thread, const AddressRange &range, const SymbolContext &addr_context, lldb::RunMode stop_others ) argument 55 ThreadPlanStepInRange( Thread &thread, const AddressRange &range, const SymbolContext &addr_context, const char *step_into_target, lldb::RunMode stop_others ) argument
|
H A D | ThreadPlanStepOverRange.cpp | 36 // ThreadPlanStepOverRange: Step through a stack range, either stepping over or into 43 const AddressRange &range, 47 ThreadPlanStepRange (ThreadPlan::eKindStepOverRange, "Step range stepping over", thread, range, addr_context, stop_others), 63 s->Printf ("stepping through range (stepping over functions): "); 81 // If we're out of the range but in the same frame or in our caller's frame 122 // inlined range, so I left that out too... 162 // If we're still in the range, keep going. 180 // The current clang (at least through 424) doesn't always get the address range for the 181 // DW_TAG_inlined_subroutines right, so that when you leave the inlined range th 40 ThreadPlanStepOverRange( Thread &thread, const AddressRange &range, const SymbolContext &addr_context, lldb::RunMode stop_others ) argument [all...] |
H A D | ThreadPlanStepRange.cpp | 38 // ThreadPlanStepRange: Step through a stack range, either stepping over or into 45 const AddressRange &range, 58 AddRange(range); 80 // See if we can find a "next range" breakpoint: 109 // Fill the slot for this address range with an empty DisassemblerSP in the instruction ranges. I want the 110 // indices to match, but I don't want to do the work to disassemble this range if I don't step into it. 161 AddRange(m_addr_context.line_entry.range); 173 log->Printf ("Step range plan stepped to another range of same line: %s", s.GetData()); 176 else if (new_context.line_entry.range 42 ThreadPlanStepRange(ThreadPlanKind kind, const char *name, Thread &thread, const AddressRange &range, const SymbolContext &addr_context, lldb::RunMode stop_others) argument [all...] |
/external/lzma/C/ |
H A D | Bcj2.c | 24 #define RC_INIT2 code = 0; range = 0xFFFFFFFF; \
27 #define NORMALIZE if (range < kTopValue) { RC_TEST; range <<= 8; code = (code << 8) | RC_READ_BYTE; }
29 #define IF_BIT_0(p) ttt = *(p); bound = (range >> kNumBitModelTotalBits) * ttt; if (code < bound)
30 #define UPDATE_0(p) range = bound; *(p) = (CProb)(ttt + ((kBitModelTotal - ttt) >> kNumMoveBits)); NORMALIZE;
31 #define UPDATE_1(p) range -= bound; code -= bound; *(p) = (CProb)(ttt - (ttt >> kNumMoveBits)); NORMALIZE;
44 UInt32 range, code;
local
|
/external/lzma/CPP/7zip/Compress/ |
H A D | RangeCoder.h | 152 UInt32 range = Range;
local 157 range >>= 1;
160 if (code >= range)
162 code -= range;
166 UInt32 t = (code - range) >> 31;
167 code -= range & (t - 1);
170 if (range < kTopValue)
173 range <<= 8;
176 Range = range;
|
/external/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_resource_buffer_upload.c | 307 * Note a dirty range. 309 * This function only notes the range down. It doesn't actually emit a DMA 364 * Discontiguous ranges -- keep track of the nearest range. 375 * We cannot add a new range to an existing DMA command, so patch-up the 387 * Add a new range. 395 * Everything else failed, so just extend the nearest range. 479 struct svga_buffer_range *range = &sbuf->map.ranges[i]; local 480 unsigned offset = range->start; 481 unsigned size = range->end - range [all...] |
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
H A D | test_rendering.c | 106 unsigned int range = stop - start; local 112 *block = (short)(start + range * (x / (float)(BLOCK_WIDTH - 1))); 122 *block = (short)(start + range * (y / (float)(BLOCK_WIDTH - 1))); 216 const int start = 16, stop = 235, range = stop - start; local 221 (short)(start + range * ((mbx * MACROBLOCK_WIDTH + bx * BLOCK_WIDTH) / (float)(INPUT_WIDTH - 1))), 222 (short)(start + range * ((mbx * MACROBLOCK_WIDTH + bx * BLOCK_WIDTH + BLOCK_WIDTH - 1) / (float)(INPUT_WIDTH - 1))), 233 const int start = 16, stop = 240, range = stop - start; local 238 (short)(start + range * ((mbx * MACROBLOCK_WIDTH + bx * BLOCK_WIDTH) / (float)(INPUT_WIDTH - 1))), 239 (short)(start + range * ((mbx * MACROBLOCK_WIDTH + bx * BLOCK_WIDTH + BLOCK_WIDTH - 1) / (float)(INPUT_WIDTH - 1))), 249 (short)(start + range * ((mb [all...] |
/external/protobuf/src/google/protobuf/compiler/java/ |
H A D | java_message.cc | 586 io::Printer* printer, const Descriptor::ExtensionRange* range) { 589 "end", SimpleItoa(range->end)); 585 GenerateSerializeOneExtensionRange( io::Printer* printer, const Descriptor::ExtensionRange* range) argument
|
/external/qemu/distrib/sdl-1.2.15/test/ |
H A D | testalpha.c | 66 int range, addition; local 121 range = (int)sqrt(xdist*xdist+ydist*ydist); 123 /* Scale distance to range of transparency (0-255) */ 124 if ( range > radius ) { 128 trans = (Uint8)((range*alphamask)/radius);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowCameraParameters.java | 41 public void getPreviewFpsRange(int[] range) { argument 42 range[0] = previewFpsMin; 43 range[1] = previewFpsMax; 161 int[] range = new int[2]; 162 range[0] = min; 163 range[1] = max; 164 ranges.add(range);
|
/external/skia/include/utils/ |
H A D | SkRandom.h | 69 uint32_t range = max - min + 1; local 70 if (0 == range) { 73 return min + this->nextU() % range; 86 in the range [0..SK_Fixed1). 91 in the range (-SK_Fixed1..SK_Fixed1). 96 in the range [0..SK_Scalar1). 101 in the range [min..max). 108 in the range (-SK_Scalar1..SK_Scalar1). 223 uint32_t range = max - min + 1; local 224 if (0 == range) { [all...] |
/external/stlport/test/unit/ |
H A D | hash_test.cpp | 209 pair<hashType::iterator,hashType::iterator> range = h.equal_range( i->first ); local 210 for ( hashType::iterator j = range.first; j != range.second; ++j ) { 230 pair<hashType::iterator,hashType::iterator> range = h.equal_range(mIter->first); 232 for (hashType::iterator h = range.first; h != range.second; h++) {
|
/external/tinyalsa/ |
H A D | mixer.c | 262 int range; local 269 range = (ei->value.integer.max - ei->value.integer.min); 271 return ei->value.integer.min + (range * percent) / 100; 276 int range = (ei->value.integer.max - ei->value.integer.min); local 278 if (range == 0) 281 return ((value - ei->value.integer.min) / range) * 100;
|
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
H A D | streams.py | 267 def range(self): member in class:TokenStream 906 def range(self): member in class:CommonTokenStream 996 I'm going to try replacing range from x..y with (y-x)+1 ReplaceOp 1200 "replace: range invalid: %d..%d (size=%d)" 1283 # ensure start/end are in range 1369 1. wipe out any insertions before op within that range. 1371 that range. 1379 3. throw exception if index in same range as previous replace 1385 inserted stuff would be before the replace range. But, if you 1400 # Wipe prior inserts within range [all...] |
/external/chromium_org/base/i18n/ |
H A D | build_utf8_validator_tables.cc | 6 // 1. Convert the complete unicode range of code points, except for the 10 // sequence. For each range, ensure the bytes on the left and the ranges 86 // Add a byte to the range. We intentionally only support adding a byte at the 111 // the appropriate range. 204 // characters and adds a range to the set on the right. For example, the first 205 // pass converts the range from "\xe0\xa0\x80" to "\xe0\xa0\xbf" to ("\xe0\xa0", 206 // [\x80-\xbf]), then the second pass converts the range from ("\xe0\xa0", 229 // that each byte range will be contiguous. This would not necessarily be 280 // start bytes and target states. All input bytes in the range between the start 292 // range ar 294 const StateRange range = {0, 1}; local 308 const Range& range = set.front(); local 336 const Range& range = it->set.front(); local [all...] |