Home
last modified time | relevance | path

Searched +full:cs +full:- +full:x (Results 1 – 25 of 734) sorted by relevance

12345678910>>...30

/freebsd/lib/msun/src/
H A Ds_sincosf.c1 /*-
12 /* s_sincosf.c -- float version of s_sincos.c.
34 sincosf(float x, float *sn, float *cs) in sincosf() argument
40 GET_FLOAT_WORD(hx, x); in sincosf()
43 if (ix <= 0x3f490fda) { /* |x| ~<= pi/4 */ in sincosf()
44 if (ix < 0x39800000) { /* |x| < 2**-12 */ in sincosf()
45 if ((int)x == 0) { in sincosf()
46 *sn = x; /* x with inexact if x != 0 */ in sincosf()
47 *cs = 1; in sincosf()
51 __kernel_sincosdf(x, sn, cs); in sincosf()
[all …]
H A Ds_sincos.c1 /*-
24 sincos(double x, double *sn, double *cs) in sincos() argument
29 /* High word of x. */ in sincos()
30 GET_HIGH_WORD(ix, x); in sincos()
32 /* |x| ~< pi/4 */ in sincos()
35 if (ix < 0x3e400000) { /* |x| < 2**-27 */ in sincos()
36 if ((int)x == 0) { /* Generate inexact. */ in sincos()
37 *sn = x; in sincos()
38 *cs = 1; in sincos()
42 __kernel_sincos(x, 0, 0, sn, cs); in sincos()
[all …]
H A Ds_sincosl.c1 /*-
2 * Copyright (c) 2007, 2010-2013 Steven G. Kargl
47 sincosl(long double x, long double *sn, long double *cs) in sincosl() argument
53 z.e = x; in sincosl()
58 /* Optimize the case where x is already within range. */ in sincosl()
61 * If x = +-0 or x is a subnormal number, then sin(x) = x and in sincosl()
62 * cos(x) = 1. in sincosl()
65 *sn = x; in sincosl()
66 *cs = 1; in sincosl()
68 __kernel_sincosl(x, 0, 0, sn, cs); in sincosl()
[all …]
H A Dk_sincosl.h1 /*-
20 C1hi = 0.041666666666666664, /* 0x15555555555555.0p-57 */
21 C1lo = 2.2598839032744733e-18, /* 0x14d80000000000.0p-111 */
22 S1hi = -0.16666666666666666, /* -0x15555555555555.0p-55 */
23 S1lo = -9.2563760475949941e-18; /* -0x15580000000000.0p-109 */
28 C1 = 0.0416666666666666666136L, /* 0xaaaaaaaaaaaaaa9b.0p-68 */
29 S1 = -0.166666666666666666671L; /* -0xaaaaaaaaaaaaaaab.0p-66 */
33 C2 = -0.0013888888888888874, /* -0x16c16c16c16c10.0p-62 */
34 C3 = 0.000024801587301571716, /* 0x1a01a01a018e22.0p-68 */
35 C4 = -0.00000027557319215507120, /* -0x127e4fb7602f22.0p-74 */
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend_iscsi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
95 &ping_timeout, 5, "Interval between ping (NOP-Out) requests, in seconds");
103 #define CFISCSI_DEBUG(X, ...) \ argument
106 printf("%s: " X "\n", \
111 #define CFISCSI_WARN(X, ...) \ argument
114 printf("WARNING: %s: " X "\n", \
119 #define CFISCSI_SESSION_DEBUG(S, X, ...) \ argument
122 printf("%s: %s (%s): " X "\n", \
123 __func__, S->cs_initiator_addr, \
[all …]
/freebsd/lib/libiconv_modules/ISO2022/
H A Dcitrus_iso2022.c3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
52 /* ----------------------------------------------------------------------
60 * iso-8859-1 (ESC , A) 00000000 00000000 00000000 1xxxxxxx
71 * reserved for UCS4 co-existence (UCS4 is 31bit encoding thanks to mohta bit)
92 /* need 3 bits to hold -1, 0, ..., 3 */
126 #define _CEI_TO_EI(_cei_) (&(_cei_)->ei)
127 #define _CEI_TO_STATE(_cei_, _func_) (_cei_)->states.s_##_func_
135 (!((_ps_)->flags & _ISO2022STATE_FLAG_INITIALIZED))
138 #define _ISO2022INVALID (wchar_t)-1
[all …]
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dvendstat.c3 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved.
15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
149 {0x0245, 0x0245}, /* Switch-X */
150 {0xc738, 0xc73b}, /* Switch-X */
151 {0xcb20, 0xcb20}, /* Switch-IB */
152 {0xcf08, 0xcf08}, /* Switch-IB2*/
153 {0x01b3, 0x01b3}, /* IS-4 */
154 {0x1003, 0x1017}, /* Connect-X */
193 return -1; in do_vendor()
[all …]
/freebsd/usr.bin/tr/
H A Dcset.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
47 * cset_alloc --
53 struct cset *cs; in cset_alloc() local
55 if ((cs = malloc(sizeof(*cs))) == NULL) in cset_alloc()
57 cs->cs_root = NULL; in cset_alloc()
58 cs->cs_classes = NULL; in cset_alloc()
59 cs->cs_havecache = false; in cset_alloc()
60 cs->cs_invert = false; in cset_alloc()
61 return (cs); in cset_alloc()
[all …]
/freebsd/lib/libiconv_modules/EUC/
H A Dcitrus_euc.c3 /*-
29 /*-
30 * SPDX-License-Identifier: BSD-3-Clause
82 /* ----------------------------------------------------------------------
101 #define _CEI_TO_EI(_cei_) (&(_cei_)->ei)
102 #define _CEI_TO_STATE(_cei_, _func_) (_cei_)->states.s_##_func_
107 #define _ENCODING_MB_CUR_MAX(_ei_) (_ei_)->mb_cur_max
127 int x; in _citrus_EUC_parse_variable() local
138 ei->mb_cur_max = 1; in _citrus_EUC_parse_variable()
139 for (x = 0; x < 4; ++x) { in _citrus_EUC_parse_variable()
[all …]
/freebsd/tests/sys/netgraph/
H A Dutil.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
34 #include <atf-c.h>
45 static int cs = -1, ds = -1; variable
48 #define CHECK(r, x) do { \ argument
49 if (!(x)) { \
53 #x " not met", strerror(errno));\
80 CHECK(, -1 != NgSendMsg(cs, path1, in _ng_connect()
96 CHECK(, -1 != NgSendMsg(cs, path1, in _ng_mkpeer()
109 CHECK(, -1 != NgSendMsg(cs, path, in _ng_rmhook()
[all …]
/freebsd/contrib/bc/tests/bc/errors/
H A D32.txt4 ++;eob= 2.-f-D;14.1*1.300
16 x[0] = "
19 x <<= 20
20 x
21 -1 >> 0
22 -2 >> 0
23 --.0020000 >> 3
25 -a(s001020001l[ba])
30 cs
33 ++;eob= 2.-f-D;14.1*1.300
[all …]
/freebsd/usr.sbin/ppp/
H A Dslcompress.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
37 * - Initial distribution.
85 register struct cstate *tstate = comp->tstate; in sl_compress_init()
88 for (i = max_state; i > 0; --i) { in sl_compress_init()
90 tstate[i].cs_next = &tstate[i - 1]; in sl_compress_init()
94 comp->last_cs = &tstate[0]; in sl_compress_init()
95 comp->last_recv = 255; in sl_compress_init()
96 comp->last_xmit = 255; in sl_compress_init()
97 comp->flags = SLF_TOSS; in sl_compress_init()
[all …]
/freebsd/sbin/growfs/
H A Ddebug.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
4 * Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
9 * Christoph Herrmann and Thomas-Henning von Kamptz, Munich and Frankfurt.
23 * Herrmann and Thomas-Henning von Kamptz.
70 if (strcmp(fn, "-") == 0) in dbg_open()
107 for (i = 0; i < sb->fs_bsiz in dbg_dump_hex()
401 dbg_dump_csum(const char * comment,struct csum * cs) dbg_dump_csum() argument
426 dbg_dump_csum_total(const char * comment,struct csum_total * cs) dbg_dump_csum_total() argument
[all...]
/freebsd/libexec/pppoed/
H A Dpppoed.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1999-2001 Brian Somers <brian@Awfulhak.org>
64 #define DEFAULT_EXEC_PREFIX "exec /usr/sbin/ppp -direct "
75 fprintf(stderr, "usage: %s [-Fd] [-P pidfile] [-a name] [-e exec | -l label]" in usage()
76 " [-n ngdebug] [-p provider] interface\n", prog); in usage()
88 int cs, int ds, int debug, struct ngm_connect *ngc) in ConfigureNode() argument
91 * We're going to do this with the passed `ds' & `cs' descriptors: in ConfigureNode()
93 * .---------. in ConfigureNode()
96 * `---------' in ConfigureNode()
[all …]
/freebsd/sys/dev/cesa/
H A Dcesa.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2009-2011 Semihalf.
32 * +------------------------+ <= sc->sc_sram_base_va + CESA_SRAM_SIZE
36 * +------------------------+ <= sc->sc_sram_base_va + CESA_DATA(0)
38 * +------------------------+
40 * +------------------------+ <= sc->sc_sram_base_va
90 { -1, 0 }
122 dev = sc->sc_dev; in cesa_dump_cshd()
124 device_printf(dev, "\t\tconfig: 0x%08X\n", cshd->cshd_config); in cesa_dump_cshd()
[all …]
/freebsd/tools/tools/nanobsd/
H A Dlegacy.sh3 # Copyright (c) 2005 Poul-Henning Kamp All rights reserved.
31 [ -n "$NANO_SECTS" ] || NANO_SECTS=63
32 [ -n "$NANO_HEADS" ] || NANO_HEADS=16
44 cs = $3 * $4
47 cyl = int ($1 / cs)
51 dsl = int (($7 + cs - 1) / cs)
57 csl = int (($6 + cs - 1) / cs)
61 isl = int ((cyl - dsl - csl) / $2)
63 isl = int (($5 + cs - 1) / cs)
67 print $3, isl * cs - $3, 1
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DWin64EHDumper.cpp1 //===- Win64EHDumper.cpp - Win64 EH Printer --------
139 COFFSymbolRef CS = COFF.getCOFFSymbol(S); getPreferredSymbol() local
352 DictScope CS(SW, "Chained"); printUnwindInfo() local
[all...]
/freebsd/sys/arm/freescale/imx/
H A Dimx_spi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
31 * Driver for imx Enhanced Configurable SPI; master-mode only.
143 {"fsl,imx51-ecspi", true},
144 {"fsl,imx53-ecspi", true},
145 {"fsl,imx6dl-ecspi", true},
146 {"fsl,imx6q-ecspi", true},
147 {"fsl,imx6sx-ecspi", true},
148 {"fsl,imx6ul-ecspi", true},
156 return (bus_read_4(sc->memres, offset)); in RD4()
[all …]
/freebsd/usr.bin/hexdump/
H A Dparse.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
42 FU *endfu; /* format at end-of-data */
84 nextfs = &tfs->nextfs; in add()
85 nextfu = &tfs->nextfu; in add()
98 nextfu = &tfu->nextfu; in add()
99 tfu->reps = 1; in add()
107 tfu->reps = atoi(savep); in add()
108 tfu->flags = F_SETREP; in add()
122 tfu->bcnt = atoi(savep); in add()
[all …]
/freebsd/sys/riscv/riscv/
H A Ddb_disasm.c1 /*-
2 * Copyright (c) 2016-2018 Ruslan Bukin <br@bsdpad.com>
7 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.
87 if (((insn ^ op->match) & op->mask) == 0) in m_op()
247 { "fmv.x.w", "d,S", MATCH_FMV_X_W, MASK_FMV_X_W, m_op },
253 { "fmv.x.d", "d,S", MATCH_FMV_X_D, MASK_FMV_X_D, m_op },
259 { "fmv.x.q", "d,S", MATCH_FMV_X_Q, MASK_FMV_X_Q, m_op },
265 { "fmv.w.x", "D,s", MATCH_FMV_W_X, MASK_FMV_W_X, m_op },
270 { "fmv.d.x", "D,s", MATCH_FMV_D_X, MASK_FMV_D_X, m_op },
275 { "fmv.q.x", "D,s", MATCH_FMV_Q_X, MASK_FMV_Q_X, m_op },
[all …]
/freebsd/sys/arm/arm/
H A Dfusu.S3 /*-
4 * Copyright (c) 1996-1998 Mark Brinicombe.
54 ldr r4, =(VM_MAXUSER_ADDRESS-3)
86 * Handle faults from casuword. Clean up and return -1.
103 ldr r3, =(VM_MAXUSER_ADDRESS-3)
106 RETc(cs)
134 ldr r3, =(VM_MAXUSER_ADDRESS-1)
137 RETc(cs)
167 RETc(cs)
189 * Handle faults from [fs]u*(). Clean up and return -1.
[all …]
/freebsd/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_gcm.c3 /*-
55 struct session_op cs; in main() local
64 memset(&cs, 0, sizeof(cs)); in main()
65 cs.mac = CRYPTO_AES_128_GMAC; in main()
66 cs.mackeylen = sizeof(key); in main()
67 cs.mackey = key; in main()
68 cs.cipher = CRYPTO_AES_GCM_16; in main()
69 cs.key = key; in main()
70 cs.keylen = sizeof(key); in main()
71 res = ioctl(fd, CIOCGSESSION, &cs); in main()
[all …]
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_spi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
58 {"broadcom,bcm2835-spi", 1},
59 {"brcm,bcm2835-spi", 1},
74 device_printf(dev, "CS=%b\n", reg, in bcm_spi_printr()
81 reg--; in bcm_spi_printr()
91 device_printf(dev, "DC=RPANIC=%#x RDREQ=%#x TPANIC=%#x TDREQ=%#x\n", in bcm_spi_printr()
105 mtx_assert(&sc->sc_mtx, MA_OWNED); in bcm_spi_modifyreg()
130 if (error != 0 || req->newptr == NULL) in bcm_spi_clock_proc()
150 if (error != 0 || req->newptr == NULL) in bcm_spi_cs_bit_proc()
[all …]
/freebsd/sys/arm/ti/
H A Dti_spi.c1 /*-
84 device_printf(dev, "SYSCONFIG: %#x\n", reg); in ti_spi_printr()
86 device_printf(dev, "SYSSTATUS: %#x\n", reg); in ti_spi_printr()
88 device_printf(dev, "IRQSTATUS: 0x%b\n", reg, IRQSTATUSBITS); in ti_spi_printr()
90 device_printf(dev, "IRQENABLE: 0x%b\n", reg, IRQSTATUSBITS); in ti_spi_printr()
92 device_printf(dev, "MODULCTRL: 0x%b\n", reg, MODULCTRLBITS); in ti_spi_printr()
93 for (i = 0; i < sc->sc_numcs; i++) { in ti_spi_printr()
96 device_printf(dev, "CH%dCONF: 0x%b\n", i, conf, CONFBITS); in ti_spi_printr()
103 while (j-- > 0) in ti_spi_printr()
108 device_printf(dev, "wordlen: %-2d clock: %d\n", wl, clk); in ti_spi_printr()
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/advsimd/
H A Dfinite_pow.h2 * Double-precision x^y function.
4 * Copyright (c) 2018-2024, Arm Limited.
5 * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
20 #define SmallExp 0x3c9 /* top12(0x1p-54). */
22 #define ThresExp 0x03f /* BigExp - SmallExp. */
27 #define Cs __v_pow_exp_data.poly macro
30 #define SmallPowX 0x001 /* top12(0x1p-126). */
32 #define ThresPowX 0x7fe /* BigPowX - SmallPowX. */
33 #define SmallPowY 0x3be /* top12(0x1.e7b6p-65). */
35 #define ThresPowY 0x080 /* BigPowY - SmallPowY. */
[all …]

12345678910>>...30