/freebsd/sys/netpfil/ipfw/ |
H A D | dn_aqm_pie.c | 204 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 D | dn_sched_fq_pie.c | 382 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 D | archive_ppmd_private.h | 95 #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 D | archive_ppmd7.c | 905 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 D | archive_ppmd8.c | 1199 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 D | archive_read_support_format_7zip.c | 4089 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 D | insns.py | 320 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 D | xz_dec_lzma2.c | 529 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 D | dummynet.c | 740 * "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 D | wrap.c | 36 #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 D | MachinePassRegistry.def | 100 MACHINE_FUNCTION_ANALYSIS("machine-branch-prob", 141 MACHINE_FUNCTION_PASS("print<machine-branch-prob>",
|
/freebsd/contrib/sendmail/src/ |
H A D | map.c | 1739 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 D | test_add_rule.py | 419 "out": InsnProb(prob=0.7),
|
/freebsd/sys/netpfil/pf/ |
H A D | pf.h | 538 u_int32_t prob; member
|
H A D | pf_nv.c | 580 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 D | pf_nl.c | 694 { .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 D | pf_ioctl.c | 1314 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 D | libpfctl.h | 206 uint32_t prob; member
|
H A D | libpfctl.c | 761 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 D | PassRegistry.def | 266 FUNCTION_ANALYSIS("branch-prob", BranchProbabilityAnalysis()) 421 FUNCTION_PASS("print<branch-prob>", BranchProbabilityPrinterPass(dbgs()))
|
/freebsd/sbin/pfctl/ |
H A D | parse.y | 253 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 D | pfctl_parser.c | 1031 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 D | pfctl_optimize.c | 110 PF_RULE_FIELD(prob, BARRIER),
|
/freebsd/tools/tools/netmap/ |
H A D | nmreplay.c | 1464 so actual loss prob. depends on size.
|
/freebsd/sys/net/ |
H A D | pfvar.h | 813 u_int32_t prob; member
|