Home
last modified time | relevance | path

Searched refs:prob (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/sys/netpfil/ipfw/
H A Ddn_aqm_pie.c204 int64_t p, prob, oldprob; in calculate_drop_prob() local
210 prob = pst->drop_prob; in calculate_drop_prob()
239 if (prob < (PIE_MAX_PROB / 1000000)) /* 0.000001 */ in calculate_drop_prob()
241 else if (prob < (PIE_MAX_PROB / 100000)) /* 0.00001 */ in calculate_drop_prob()
243 else if (prob < (PIE_MAX_PROB / 10000)) /* 0.0001 */ in calculate_drop_prob()
245 else if (prob < (PIE_MAX_PROB / 1000)) /* 0.001 */ in calculate_drop_prob()
247 else if (prob < (PIE_MAX_PROB / 100)) /* 0.01 */ in calculate_drop_prob()
249 else if (prob < (PIE_MAX_PROB / 10)) /* 0.1 */ in calculate_drop_prob()
254 oldprob = prob; in calculate_drop_prob()
257 prob = prob - p; in calculate_drop_prob()
[all …]
H A Ddn_sched_fq_pie.c382 int64_t p, prob, oldprob; in fq_calculate_drop_prob() local
386 prob = pst->drop_prob; in fq_calculate_drop_prob()
415 if (prob < (PIE_MAX_PROB / 1000000)) /* 0.000001 */ in fq_calculate_drop_prob()
417 else if (prob < (PIE_MAX_PROB / 100000)) /* 0.00001 */ in fq_calculate_drop_prob()
419 else if (prob < (PIE_MAX_PROB / 10000)) /* 0.0001 */ in fq_calculate_drop_prob()
421 else if (prob < (PIE_MAX_PROB / 1000)) /* 0.001 */ in fq_calculate_drop_prob()
423 else if (prob < (PIE_MAX_PROB / 100)) /* 0.01 */ in fq_calculate_drop_prob()
425 else if (prob < (PIE_MAX_PROB / 10)) /* 0.1 */ in fq_calculate_drop_prob()
430 oldprob = prob; in fq_calculate_drop_prob()
433 prob = prob - p; in fq_calculate_drop_prob()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_ppmd_private.h95 #define PPMD_UPDATE_PROB_0(prob) ((prob) + (1 << PPMD_INT_BITS) - PPMD_GET_MEAN(prob)) argument
96 #define PPMD_UPDATE_PROB_1(prob) ((prob) - PPMD_GET_MEAN(prob)) argument
H A Darchive_ppmd7.c905 UInt16 *prob = Ppmd7_GetBinSumm(p); in Ppmd7_DecodeSymbol() local
906 if (rc->DecodeBit(rc, *prob) == 0) in Ppmd7_DecodeSymbol()
909 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob); in Ppmd7_DecodeSymbol()
914 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob); in Ppmd7_DecodeSymbol()
915 p->InitEsc = PPMD7_kExpEscape[*prob >> 10]; in Ppmd7_DecodeSymbol()
1084 UInt16 *prob = Ppmd7_GetBinSumm(p); in Ppmd7_EncodeSymbol() local
1088 RangeEnc_EncodeBit_0(rc, *prob); in Ppmd7_EncodeSymbol()
1089 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob); in Ppmd7_EncodeSymbol()
1096 RangeEnc_EncodeBit_1(rc, *prob); in Ppmd7_EncodeSymbol()
1097 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob); in Ppmd7_EncodeSymbol()
[all …]
H A Darchive_ppmd8.c1199 UInt16 *prob = Ppmd8_GetBinSumm(p); in Ppmd8_DecodeSymbol() local
1200 if (((p->Code / (p->Range >>= 14)) < *prob)) in Ppmd8_DecodeSymbol()
1203 RangeDec_Decode(p, 0, *prob); in Ppmd8_DecodeSymbol()
1204 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob); in Ppmd8_DecodeSymbol()
1209 RangeDec_Decode(p, *prob, (1 << 14) - *prob); in Ppmd8_DecodeSymbol()
1210 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob); in Ppmd8_DecodeSymbol()
1211 p->InitEsc = PPMD8_kExpEscape[*prob >> 10]; in Ppmd8_DecodeSymbol()
H A Darchive_read_support_format_7zip.c4089 CProb *prob; in Bcj2_Decode() local
4118 prob = zip->bcj2_p + zip->bcj2_prevByte; in Bcj2_Decode()
4120 prob = zip->bcj2_p + 256; in Bcj2_Decode()
4122 prob = zip->bcj2_p + 257; in Bcj2_Decode()
4124 IF_BIT_0(prob) { in Bcj2_Decode()
4125 UPDATE_0(prob) in Bcj2_Decode()
4132 UPDATE_1(prob) in Bcj2_Decode()
/freebsd/tests/atf_python/sys/netpfil/ipfw/
H A Dinsns.py320 prob=0.0, argument
323 self.prob = prob
326 def prob(self): member in InsnProb
329 @prob.setter
330 def prob(self, prob: float): member in InsnProb
331 self.u32 = int(prob * 0x7FFFFFFF)
334 return " prob={}".format(round(self.prob, 5))
/freebsd/sys/contrib/xz-embedded/linux/lib/xz/
H A Dxz_dec_lzma2.c529 static __always_inline int rc_bit(struct rc_dec *rc, uint16_t *prob) in rc_bit() argument
535 bound = (rc->range >> RC_BIT_MODEL_TOTAL_BITS) * *prob; in rc_bit()
538 *prob += (RC_BIT_MODEL_TOTAL - *prob) >> RC_MOVE_BITS; in rc_bit()
543 *prob -= *prob >> RC_MOVE_BITS; in rc_bit()
/freebsd/sbin/ipfw/
H A Ddummynet.c740 * "delay prob" | "prob delay"
759 prob delay
778 #define ED_TOK_PROB "prob"
849 double prob; member
860 res = p1->prob - p2->prob; in compare_points()
964 points[points_no].prob = atof(arg); in load_extra_delays()
967 points[points_no].prob = atof(name); in load_extra_delays()
969 if (points[points_no].prob > 1. in load_extra_delays()
[all...]
/freebsd/contrib/libfido2/fuzz/
H A Dwrap.c36 #define WRAP(type, name, args, retval, param, prob) \ argument
40 if (prng_up && uniform_random(400) < (prob)) { \
/freebsd/contrib/llvm-project/llvm/include/llvm/Passes/
H A DMachinePassRegistry.def100 MACHINE_FUNCTION_ANALYSIS("machine-branch-prob",
141 MACHINE_FUNCTION_PASS("print<machine-branch-prob>",
/freebsd/contrib/sendmail/src/
H A Dmap.c1739 char *prob = "unsafe"; local
1743 prob = "missing";
1745 sm_dprintf("\t%s map file: %d\n", prob, ret);
1748 map->map_mname, prob, map->map_file);
2313 char *prob = "unsafe"; variable
2317 prob = "missing";
2319 sm_dprintf("\t%s map file %s: %s\n", prob, buf, sm_errstring(i));
2323 mapclassname, map->map_mname, prob, buf);
2927 char *prob = "unsafe"; local
2931 prob = "missing";
[all …]
/freebsd/sbin/ipfw/tests/
H A Dtest_add_rule.py419 "out": InsnProb(prob=0.7),
/freebsd/sys/netpfil/pf/
H A Dpf.h538 u_int32_t prob; member
H A Dpf_nv.c580 PFNV_CHK(pf_nvuint32(nvl, "prob", &rule->prob)); in pf_nvrule_to_krule()
754 nvlist_add_number(nvl, "prob", rule->prob); in pf_krule_to_nvrule()
H A Dpf_nl.c694 { .type = PF_RT_PROB, .off = _OUT(prob), .cb = nlattr_get_uint32 },
934 nlattr_add_u32(nw, PF_RT_PROB, rule->prob); in pf_handle_getrule()
H A Dpf_ioctl.c1314 PF_MD5_UPD_HTONL(rule, prob, y); in pf_hash_rule_rolling()
1988 krule->prob = rule->prob; in pf_rule_to_krule()
/freebsd/lib/libpfctl/
H A Dlibpfctl.h206 uint32_t prob; member
H A Dlibpfctl.c761 rule->prob = nvlist_get_number(nvl, "prob"); in pf_nvrule_to_rule()
1245 snl_add_msg_attr_u32(nw, PF_RT_PROB, r->prob); in snl_add_msg_attr_pf_rule()
1612 { .type = PF_RT_PROB, .off = _OUT(r.prob), .cb = snl_attr_get_uint32 },
/freebsd/contrib/llvm-project/llvm/lib/Passes/
H A DPassRegistry.def266 FUNCTION_ANALYSIS("branch-prob", BranchProbabilityAnalysis())
421 FUNCTION_PASS("print<branch-prob>", BranchProbabilityPrinterPass(dbgs()))
/freebsd/sbin/pfctl/
H A Dparse.y253 u_int32_t prob; member
998 r.prob = $9.prob;
2387 r.prob = $9.prob;
2956 filter_opts.prob = (u_int32_t)p;
2957 if (filter_opts.prob == 0)
2958 filter_opts.prob = 1;
H A Dpfctl_parser.c1031 if (r->prob) { in print_rule()
1034 snprintf(buf, sizeof(buf), "%f", r->prob*100.0/(UINT_MAX+1.0)); in print_rule()
H A Dpfctl_optimize.c110 PF_RULE_FIELD(prob, BARRIER),
/freebsd/tools/tools/netmap/
H A Dnmreplay.c1464 so actual loss prob. depends on size.
/freebsd/sys/net/
H A Dpfvar.h813 u_int32_t prob; member

12