Home
last modified time | relevance | path

Searched +full:fractional +full:- +full:n (Results 1 – 25 of 181) sorted by relevance

12345678

/freebsd/share/man/man3/
H A Dqmath.331 .Nd fixed-point math library based on the
39 data types and APIs support fixed-point math based on the
77 The fractional component is truncated to fit into the destination,
79 None of the operations is affected by the floating-point environment.
86 .Bl -column "isgreaterequal" "bessel function of the second kind of the order 0"
144 .Ss Functions which manipulate the combined integer/fractional data bits
146 .Xr Q_IFRAWMASK 3 integer/fractional bitmask
148 .Xr Q_IFVALFMASK 3 value of fractional bits
149 .Xr Q_GIFRAW 3 raw integer/fractional bits
150 .Xr Q_GIFABSVAL 3 absolute value of fractional bits
[all …]
H A DQ_INI.346 .Nd fixed-point math miscellaneous functions/variables
69 .Fn Q_ABS "NTYPE n"
86 and decimal fractional value
104 .Fa q Ns -specific
105 count of total, control-encoded fractional, maximum fractional, effective
106 fractional, and integer bits applicable to
129 .Fa n .
142 C-string representation of
148 renders the C-string representation of
152 and fractional precision
[all …]
H A DQ_SIGNED.341 .Nd fixed-point math comparison and logic functions
45 .Fn Q_SIGNED "NTYPE n"
47 .Fn Q_LTZ "NTYPE n"
71 .Fa n
81 .Fa n
95 fractional bits is the same,
117 The integral and fractional values are used to perform the comparison, without
118 explicit concern for the underlying number of integer versus fractional bits.
135 .Em Qm.n
137 .Em n
[all …]
H A DQ_QADDI.336 .Nd fixed-point math functions which apply integers to a Q number
48 .Fn Q_QFRACI "QTYPE *q" "ITYPE n" "ITYPE d"
68 .Fa n
71 and stores the fixed-point result in
78 integer and fractional bits with the Q representation of integer value
112 is returned for divide-by-zero.
127 .An -nosplit
/freebsd/sys/sys/
H A Dqmath.h1 /*-
2 * Copyright (c) 2018-2024 Netflix, Inc.
28 * Data types and APIs for fixed-point math based on the "Q" number format.
33 * bits 1-2 specify the radix point shift index i.e. 00,01,10,11 == 1,2,3,4
60 /* Ancient GCC hack to de-const, remove when GCC4 is removed. */
67 /* Type-cast variable 'v' to the same underlying type as 'q'. */
76 /* Number of control-encoded bits reserved for fractional component data. */
80 /* Min/max number of bits that can be reserved for fractional component data. */
82 #define Q_MAXNFBITS(q) ((uint32_t)(Q_NTBITS(q) - Q_SIGNED(q) - Q_NCBITS))
85 * Number of bits actually reserved for fractional component data. This can be
[all …]
/freebsd/crypto/openssl/test/
H A Dx509_time_test.c2 * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
24 /* -1 if asn1_time <= cmp_time, 1 if asn1_time > cmp_time, 0 if error. */
30 /* 0 for check-only mode, 1 for set-string mode */
38 * But they can still be ignored explicitly in set-string mode by:
39 * setting -1 to expected_type and setting NULL to expected_string.
41 * It's useful in a case of set-string mode but the expected result
50 * those time-compare-cases, so we may not test it again.
56 "20170217180105Z", 0, 1, -1, NULL,
60 "20170229180105Z", 0, 0, -1, NULL,
64 "20160229180105Z", 0, 1, -1, NULL,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DChrono.cpp1 //===- Support/Chrono.cpp - Utilities for Timing Manipulation ---*- C++ -*-===//
5 // SPDX-License-Identifie
57 auto Fractional = T - Truncated; format() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineBlockFrequencyInfo.cpp1 //===- MachineBlockFrequencyInfo.cpp - MBB Frequency Analysis -------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
30 #define DEBUG_TYPE "machine-block-freq"
34 "view-machine-block-freq-propagation-dags", cl::Hidden,
40 "fractional block frequency representation."),
43 "integer fractional block frequency representation."),
49 "view-block-layout-with-bfi", cl::Hidden,
56 "fractional block frequency representation."),
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcommon.h1 //===-- common.h ------------------------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
34 return (X & (X - 1)) == 0; in isPowerOfTwo()
39 return (X + Boundary - 1) & ~(Boundary - 1); in roundUp()
42 return ((X + Boundary - 1) / Boundary) * Boundary; in roundUpSlow()
47 return X & ~(Boundary - 1); in roundDown()
55 return (X & (Alignment - 1)) == 0; in isAligned()
73 return SCUDO_WORDSIZE - 1U - static_cast<uptr>(__builtin_clzl(X)); in getMostSignificantSetBitIndex()
97 // ANSI C linear congruential PRNG (16-bit output). in getRandomU32()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DTargetInfo.cpp1 //===--- TargetInfo.cpp - Information about Target machine ----------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
28 // language-specific address space.
55 // Set defaults. Defaults are set for a 32-bit RISC platform, like PPC or in TargetInfo()
86 // Fixed point default integral and fractional bit sizes in TargetInfo()
87 // We give the _Accum 1 fewer fractional bits than their corresponding _Fract in TargetInfo()
88 // types by default to have the same number of fractional bits between _Accum in TargetInfo()
98 // From the glibc documentation, on GNU systems, malloc guarantees 16-byte in TargetInfo()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar9002/
H A Dar9280.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting
33 #define N(a) (sizeof(a)/sizeof(a[0])) macro
39 #define AR9280(ah) ((struct ar9280State *) AH5212(ah)->ah_rfHal)
49 (void) ath_hal_ini_write(ah, &AH5416(ah)->ah_ini_bb_rfgain, in ar9280WriteRegs()
81 OS_MARK(ah, AH_MARK_SETCHANNEL, chan->ic_freq); in ar9280SetChannel()
92 if (freq < 4800) { /* 2 GHz, fractional mode */ in ar9280SetChannel()
116 * Enable fractional mode for half/quarter rate in ar9280SetChannel()
134 /* Enable 2G (fractional) mode for channels which are 5MHz spaced */ in ar9280SetChannel()
[all …]
/freebsd/sys/dev/iicbus/rtc/
H A Dnxprtc.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
30 * Driver for NXP real-time clock/calendar chips:
31 * - PCF8563 = low power, countdown timer
32 * - PCA8565 = like PCF8563, automotive temperature range
33 * - PCF8523 = low power, countdown timer, oscillator freq tuning, 2 timers
34 * - PCF2127 = like PCF8523, industrial, tcxo, tamper/ts, i2c & spi, 512B ram
35 * - PCA2129 = like PCF8523, automotive, tcxo, tamper/ts, i2c & spi, (note 1)
36 * - PCF2129 = like PCF8523, industrial, tcxo, tamper/ts, i2c & spi, (note 1)
43 * fractional seconds and get a resolution of ~15ms.
[all …]
/freebsd/contrib/ntp/include/
H A Dtimetoa.h2 * timetoa.h -- time_t related string formatting
13 * 32-bit signed int values in the year 2038, implementations slowly
14 * move to 64bit base types for time_t, even in 32-bit environments. In
36 * printf("a time stamp: %" TIME_FORMAT " and more\n", a_time_t_value);
65 * general fractional time stamp formatting.
67 * secs - integral seconds of time stamp
68 * frac - fractional units
69 * prec - log10 of units per second (3=milliseconds, 6=microseconds,..)
/freebsd/secure/lib/libcrypto/man/man3/
H A DASN1_TIME_set.318 .\" Set up some character translations and predefined strings. \*(-- will
24 .tr \(*W-
27 . ds -- \(*W-
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
37 . ds -- \|\(em\|
62 . tm Index:\\$1\t\\n%\t"\\$2"
71 .\" Fear. Run. Save yourself. No user-serviceable parts.
81 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
[all …]
/freebsd/lib/msun/src/
H A De_fmodl.c1 /*-
19 #define BIAS (LDBL_MAX_EXP - 1)
35 * fractional mantissa, if the architecture doesn't have such a bit by
43 #define HFRAC_BITS (LDBL_MANH_SIZE - 1)
46 #define MANL_SHIFT (LDBL_MANL_SIZE - 1)
48 static const long double one = 1.0, Zero[] = {0.0, -0.0,};
56 * - The low part of the mantissa fits in a manl_t exactly.
57 * - The high part of the mantissa fits in an int64_t with enough room
58 * for an explicit integer bit in front of the fractional bits.
67 int ix,iy,n,sx; in fmodl() local
[all …]
H A Ds_remquol.c1 /*-
19 #define BIAS (LDBL_MAX_EXP - 1)
35 * fractional mantissa, if the architecture doesn't have such a bit by
43 #define HFRAC_BITS (LDBL_MANH_SIZE - 1)
46 #define MANL_SHIFT (LDBL_MANL_SIZE - 1)
48 static const long double Zero[] = {0.0L, -0.0L};
51 * Return the IEEE remainder and set *quo to the last n bits of the
52 * quotient, rounded to the nearest integer. We choose n=31 because
54 * a side-effect of computing the remainder by the shift and subtract
59 * - The low part of the mantissa fits in a manl_t exactly.
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DASN1_TIME_set.pod17 ASN1_TIME_dup, ASN1_UTCTIME_dup, ASN1_GENERALIZEDTIME_dup - ASN.1 Time functions
108 returns an error. The output for generalized time may include a fractional part
119 a format check on I<s> only. If I<s> is in Generalized format with fractional
120 seconds, e.g. YYYYMMDDHHMMSS.SSSZ, the fractional seconds will be lost while
222 passed-in time structure has invalid syntax, for example.
224 ASN1_TIME_cmp_time_t() and ASN1_UTCTIME_cmp_time_t() return -1 if I<s> is
225 before I<t>, 0 if I<s> equals I<t>, or 1 if I<s> is after I<t>. -2 is returned
228 ASN1_TIME_compare() returns -1 if I<a> is before I<b>, 0 if I<a> equals I<b>,
229 or 1 if I<a> is after I<b>. -2 is returned on error.
263 printf("Later\n");
[all …]
/freebsd/sys/contrib/device-tree/Bindings/clock/
H A Dcs2000-cp.txt1 CIRRUS LOGIC Fractional-N Clock Synthesizer & Clock Multiplier
5 - compatible: "cirrus,cs2000-cp"
6 - reg: The chip select number on the I2C bus
7 - clocks: common clock binding for CLK_IN, XTI/REF_CLK
8 - clock-names: CLK_IN : clk_in, XTI/REF_CLK : ref_clk
9 - #clock-cells: must be <0>
16 #clock-cells = <0>;
17 compatible = "cirrus,cs2000-cp";
20 clock-names = "clk_in", "ref_clk";
/freebsd/sys/dev/clk/
H A Dclk_div.c1 /*-
86 if (!(sc->div_flags & CLK_DIV_WITH_TABLE)) in clknode_div_table_get_divider()
89 for (table = sc->div_table; table->divider != 0; table++) in clknode_div_table_get_divider()
90 if (table->value == sc->divider) in clknode_div_table_get_divider()
91 return (table->divider); in clknode_div_table_get_divider()
101 if (!(sc->div_flags & CLK_DIV_WITH_TABLE)) in clknode_div_table_get_value()
104 for (table = sc->div_table; table->divider != 0; table++) in clknode_div_table_get_value()
105 if (table->divider == *divider) { in clknode_div_table_get_value()
106 *divider = table->value; in clknode_div_table_get_value()
124 rv = RD4(clk, sc->offset, &reg); in clknode_div_init()
[all …]
/freebsd/contrib/jemalloc/src/
H A Ddiv.c8 * Suppose we have n = q * d, all integers. We know n and d, and want q = n / d.
10 * For any k, we have (here, all division is exact; not C-style rounding):
11 * floor(ceil(2^k / d) * n / 2^k) = floor((2^k + r) / d * n / 2^k), where
12 * r = (-2^k) mod d.
15 * ... = floor(2^k / d * n / 2^k + r / d * n / 2^k)
16 * = floor(n / d + (r / d) * (n / 2^k)).
18 * The fractional part of n / d is 0 (because of the assumption that d divides n
20 * ... = n / d + floor((r / d) * (n / 2^k))
23 * (r / d) * (n / 2^k) < 1.
26 * n / 2 ^ k < 1 by setting k = 32. This gets us a value of magic that works.
[all …]
/freebsd/contrib/ntp/libntp/
H A Dsnprintf.c4 * Changed in a backwards-incompatible way to separate HAVE_SNPRINTF
10 * C99-compliant implementations.
38 * 2008-01-20 Holger Weiss <holger@jhweiss.de> for C99-snprintf 1.1:
43 * 2008-01-06 Holger Weiss <holger@jhweiss.de> for C99-snprintf 1.0:
52 * "t", and "z" length modifiers; support the "#" flag and the (non-C99)
69 * 2007-0
[all...]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetInfo.h1 //===--- TargetInfo.h - Expose information about the target -----*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
112 // If true, unsigned fixed point types have the same number of fractional bits
115 // one more fractional bit than its corresponding signed type. This is false
119 // Fixed point integral and fractional bit sizes
120 // Saturated types share the same integral/fractional bits as their
122 // For simplicity, the fractional bits in a _Fract type will be one less the
141 ///===---- Target Data Type Query Methods -------------------------------===//
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Da_time.c2 * Copyright 1999-2025 The OpenSSL Project Authors. All Rights Reserved.
10 /*-
55 int y = tm->tm_year + 1900; in determine_days()
56 int m = tm->tm_mon; in determine_days()
57 int d = tm->tm_mday; in determine_days()
60 tm->tm_yday = ydays[m] + d - 1; in determine_days()
63 tm->tm_yday += leap_year(y); in determine_days()
68 y--; in determine_days()
73 tm->tm_wday = (d + (13 * m) / 5 + y + y / 4 + c / 4 + 5 * c + 6) % 7; in determine_days()
82 int n, i, i2, l, o, min_l = 11, strict = 0, end = 6, btz = 5, md; in ossl_asn1_time_to_tm() local
[all …]
/freebsd/contrib/tzcode/
H A Dtzselect.82 .\" 2009-05-17 by Arthur David Olson.
5 tzselect \- select a timezone
14 . if \n(.g .if c \(de .if c \(fm .if c \(sd \{\
23 .B \*-c
26 .B \*-n
29 .B \*-\*-help
31 .B \*-\*-version
43 .BI "\*-c " coord
68 seconds, with any trailing fractions represent fractional minutes or
73 .B "\*-c\ +40.689\*-074.045"
[all …]
/freebsd/sys/contrib/device-tree/Bindings/iio/frequency/
H A Dadi,admv4420.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nuno Sá <nuno.sa@analog.com>
14 mixer with an integrated fractional-N synthesizer, ideally suited
20 - adi,admv4420
25 spi-max-frequency:
28 adi,lo-freq-khz:
32 adi,ref-ext-single-ended-en:
37 - compatible
[all …]

12345678