Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 732) sorted by relevance

12345678910>>...30

/freebsd/contrib/llvm-project/clang/lib/Headers/hlsl/
H A Dhlsl_compat_overloads.h19 #define _DXC_COMPAT_UNARY_DOUBLE_OVERLOADS(fn) \ argument
20 constexpr float fn(double V) { return fn((float)V); } \
21 constexpr float2 fn(double2 V) { return fn((float2)V); } \
22 constexpr float3 fn(double3 V) { return fn((float3)V); } \
23 constexpr float4 fn(double4 V) { return fn((float4)V); }
25 #define _DXC_COMPAT_BINARY_DOUBLE_OVERLOADS(fn) \ argument
26 constexpr float fn(double V1, double V2) { \
27 return fn((float)V1, (float)V2); \
29 constexpr float2 fn(double2 V1, double2 V2) { \
30 return fn((float2)V1, (float2)V2); \
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dfifo.c62 fifonode_t *fn = xmalloc(sizeof (fifonode_t)); in fifo_add() local
64 fn->fn_data = data; in fifo_add()
65 fn->fn_next = NULL; in fifo_add()
68 f->f_head = f->f_tail = fn; in fifo_add()
70 f->f_tail->fn_next = fn; in fifo_add()
71 f->f_tail = fn; in fifo_add()
79 fifonode_t *fn; in fifo_remove() local
82 if ((fn = f->f_head) == NULL) in fifo_remove()
85 data = fn->fn_data; in fifo_remove()
86 if ((f->f_head = fn->fn_next) == NULL) in fifo_remove()
[all …]
/freebsd/lib/msun/src/
H A De_scalbf.c21 scalbf(float x, int fn) in scalbf() argument
24 scalbf(float x, float fn) in scalbf()
28 return scalbnf(x,fn); in scalbf()
30 if ((isnanf)(x)||(isnanf)(fn)) return x*fn; in scalbf()
31 if (!finitef(fn)) { in scalbf()
32 if(fn>(float)0.0) return x*fn; in scalbf()
33 else return x/(-fn); in scalbf()
35 if (rintf(fn)!=fn) return (fn-fn)/(fn-fn); in scalbf()
36 if ( fn > (float)65000.0) return scalbnf(x, 65000); in scalbf()
37 if (-fn > (float)65000.0) return scalbnf(x,-65000); in scalbf()
[all …]
H A De_scalb.c24 scalb(double x, int fn) in scalb() argument
27 scalb(double x, double fn) in scalb()
31 return scalbn(x,fn); in scalb()
33 if (isnan(x)||isnan(fn)) return x*fn; in scalb()
34 if (!finite(fn)) { in scalb()
35 if(fn>0.0) return x*fn; in scalb()
36 else return x/(-fn); in scalb()
38 if (rint(fn)!=fn) return (fn-fn)/(fn-fn); in scalb()
39 if ( fn > 65000.0) return scalbn(x, 65000); in scalb()
40 if (-fn > 65000.0) return scalbn(x,-65000); in scalb()
[all …]
/freebsd/include/
H A Dtgmath.h65 #define __tg_generic(x, cfnl, cfn, cfnf, fnl, fn, fnf) \ argument
71 default: fn, \
77 #define __tg_impl_simple(x, y, z, fnl, fn, fnf, ...) \ argument
80 fnl, fn, fnf, fnl, fn, fnf)(__VA_ARGS__)
81 #define __tg_impl_full(x, y, cfnl, cfn, cfnf, fnl, fn, fnf, ...) \ argument
84 cfnl, cfn, cfnf, fnl, fn, fnf)(__VA_ARGS__)
86 #define __tg_generic_simple(x, fnl, fn, fnf) \ argument
88 __generic(x, double _Complex, fn, \
91 __generic(x, float, fnf, fn)))))
92 #define __tg_impl_simple(x, y, z, fnl, fn, fnf, ...) \ argument
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Dsplit.c51 int fn; in split() local
74 fn = nfields; in split()
77 fn--; in split()
78 if (fn == 0) in split()
82 return(nfields - fn); in split()
86 fn = nfields; in split()
90 return(fn); in split()
91 fn++; in split()
98 fn = nfields; in split()
101 fn--; in split()
[all …]
/freebsd/lib/libc/regex/grot/
H A Dsplit.c20 int fn; in split() local
43 fn = nfields; in split()
46 fn--; in split()
47 if (fn == 0) in split()
51 return(nfields - fn); in split()
55 fn = nfields; in split()
59 return(fn); in split()
60 fn++; in split()
67 fn = nfields; in split()
70 fn--; in split()
[all …]
/freebsd/lib/libc/stdlib/
H A Datexit.c134 struct atexit_fn fn; in atexit() local
137 fn.fn_type = ATEXIT_FN_STD; in atexit()
138 fn.fn_ptr.std_func = func; in atexit()
139 fn.fn_arg = NULL; in atexit()
140 fn.fn_dso = NULL; in atexit()
142 error = atexit_register(&fn); in atexit()
153 struct atexit_fn fn; in atexit_b() local
163 fn.fn_type = ATEXIT_FN_CXA; in atexit_b()
164 fn.fn_ptr.cxa_func = (void(*)(void*))GET_BLOCK_FUNCTION(func); in atexit_b()
165 fn.fn_arg = func; in atexit_b()
[all …]
/freebsd/lib/libutil/tests/
H A Dflopen_test.c47 const char *fn = "test_flopen_create"; in test_flopen_create() local
51 unlink(fn); in test_flopen_create()
52 fd = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_create()
58 unlink(fn); in test_flopen_create()
68 const char *fn = "test_flopen_open"; in test_flopen_open() local
72 fd = open(fn, O_RDWR|O_CREAT, 0640); in test_flopen_open()
77 fd = flopen(fn, O_RDWR); in test_flopen_open()
84 unlink(fn); in test_flopen_open()
94 const char *fn = "test_flopen_lock_self"; in test_flopen_lock_self() local
98 unlink(fn); in test_flopen_lock_self()
[all …]
H A Dpidfile_test.c60 const char *fn = "test_pidfile_uncontested"; in test_pidfile_uncontested() local
64 unlink(fn); in test_pidfile_uncontested()
65 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested()
72 unlink(fn); in test_pidfile_uncontested()
76 unlink(fn); in test_pidfile_uncontested()
86 const char *fn = "test_pidfile_self"; in test_pidfile_self() local
91 unlink(fn); in test_pidfile_self()
92 pf1 = pidfile_open(fn, 0600, &other); in test_pidfile_self()
100 unlink(fn); in test_pidfile_self()
104 pf2 = pidfile_open(fn, 0600, &other); in test_pidfile_self()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dmodule.h107 void (*fn)(void); in _module_run() local
119 fn = arg; in _module_run()
120 fn(); in _module_run()
123 #define module_init(fn) \ argument
124 SYSINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_FIRST, _module_run, (fn))
126 #define module_exit(fn) \ argument
127 SYSUNINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_SECOND, _module_run, (fn))
133 #define module_init_order(fn, order) \ argument
134 SYSINIT(fn, SI_SUB_OFED_MODINIT, (order), _module_run, (fn))
136 #define module_exit_order(fn, order) \ argument
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dxattr_compat.h44 #define ZPL_XATTR_LIST_WRAPPER(fn) \ argument
46 fn(struct dentry *dentry) \
48 return (!!__ ## fn(dentry->d_inode, NULL, 0, NULL, 0)); \
56 #define ZPL_XATTR_GET_WRAPPER(fn) \ argument
58 fn(const struct xattr_handler *handler, struct dentry *dentry, \
62 return (__ ## fn(inode, name, buffer, size)); \
65 #define ZPL_XATTR_GET_WRAPPER(fn) \ argument
67 fn(const struct xattr_handler *handler, struct dentry *dentry, \
70 return (__ ## fn(inode, name, buffer, size)); \
81 #define ZPL_XATTR_SET_WRAPPER(fn) \ argument
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dzzz_fw_ports_fwget.sh127 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
131 if test ${fn} -gt 0; then
136 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
146 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
148 if test ${fn} -gt 0; then
152 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
169 fn=$(echo "${fwsl}" | wc -w | awk '{ print $1 }')
171 if test ${fn} -gt 0; then
179 awk -v fn=$fn '{
190 awk -v fn=$fn '{
[all …]
/freebsd/sys/dev/sdio/
H A Dsdiob.c141 sdiob_rw_direct_sc(struct sdiob_softc *sc, uint8_t fn, uint32_t addr, bool wr, in sdiob_rw_direct_sc() argument
156 fn, addr, wr, *val)); in sdiob_rw_direct_sc()
159 arg = SD_IO_RW_FUNC(fn) | SD_IO_RW_ADR(addr); in sdiob_rw_direct_sc()
171 /*timeout*/ sc->cardinfo.f[fn].timeout); in sdiob_rw_direct_sc()
194 sdio_rw_direct(device_t dev, uint8_t fn, uint32_t addr, bool wr, in sdio_rw_direct() argument
202 error = sdiob_rw_direct_sc(sc, fn, addr, wr, val); in sdio_rw_direct()
208 sdiob_read_direct(device_t dev, uint8_t fn, uint32_t addr, uint8_t *val) in sdiob_read_direct() argument
213 error = sdio_rw_direct(dev, fn, addr, false, &v); in sdiob_read_direct()
221 sdiob_write_direct(device_t dev, uint8_t fn, uint32_t addr, uint8_t val) in sdiob_write_direct() argument
224 return (sdio_rw_direct(dev, fn, addr, true, &val)); in sdiob_write_direct()
[all …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dzzz_fw_ports_fwget.sh147 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
151 if test ${fn} -gt 0; then
156 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
167 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
169 if test ${fn} -gt 0; then
173 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
193 fn=$(echo "${fwsl}" | wc -w | awk '{ print $1 }')
195 if test ${fn} -gt 0; then
203 awk -v fn=$fn '{
214 awk -v fn=$fn '{
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dzzz_fw_ports_fwget.sh154 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
158 if test ${fn} -gt 0; then
163 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
174 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
176 if test ${fn} -gt 0; then
180 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
200 fn=$(echo "${fwsl}" | wc -w | awk '{ print $1 }')
202 if test ${fn} -gt 0; then
210 awk -v fn=$fn '{
221 awk -v fn=$fn '{
[all …]
/freebsd/contrib/netbsd-tests/lib/libm/
H A Dt_libm.h10 #define T_LIBM_CHECK(subtest, fn, arg, expect_, epsilon_) do { \ argument
13 long double r = fn(arg); \
17 "subtest %u: " #fn "(%g) is %Lg (%.14La) " \
24 #define T_LIBM_CHECK_NAN(subtest, fn, arg) do { \ argument
25 double r = fn(arg); \
27 atf_tc_fail_nonfatal("subtest %u: " #fn "(%g) is %g not NaN", \
32 #define T_LIBM_CHECK_NAN(subtest, fn, arg) (void)(arg) argument
36 #define T_LIBM_CHECK_PLUS_ZERO(subtest, fn, arg) do { \ argument
37 double r = fn(arg); \
39 atf_tc_fail_nonfatal("subtest %u: " #fn "(%g) is %g not +0.0", \
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dtest-readenv.c60 write_file(const char *fn, const char *s) in write_file() argument
63 f = fopen(fn, "w"); in write_file()
65 unlink(fn); in write_file()
71 unlink(fn); in write_file()
81 char fn[MAXPATHLEN]; in main() local
84 make_file(fn, sizeof(fn)); in main()
86 write_file(fn, s1); in main()
87 count = read_environment(fn, &env); in main()
93 write_file(fn, s2); in main()
94 count = read_environment(fn, &env); in main()
[all …]
/freebsd/tools/build/
H A Dfreebsd-yeet.pl17 my $fn = $_[0];
19 if ($fn =~ m=^./contrib/=) {
22 if ($fn =~ m=^./sys/contrib/=) {
25 if ($fn =~ m=^./cddl/contrib/=) {
28 if ($fn =~ m=^./crypto/=) {
31 if ($fn =~ m=^./.git/=) {
34 if ($fn =~ m=~$=) {
60 my $fn="$File::Find::name";
61 return if skip_list($fn);
62 open my $fh, '<', $_ or die "Can't open $fn: $!\n";
[all …]
/freebsd/tools/tools/ansify/
H A Dansify.pl40 my $fn = shift;
64 warn("[$fn:$line] $func(): can't parse argument list\n");
76 warn("[$fn:$line] $func(): unknown type for '$arg' argument\n");
96 warn("[$fn:$line] $func(): too many arguments\n");
104 warn("[$fn:$line] $func(): definition exceeds 80 characters\n")
116 my $fn = shift;
118 my $tfn = "$fn.ansify";
122 if (open(IN, "<", $fn)) {
124 ansify(*IN{IO}, *OUT{IO}, $fn);
125 if (!rename($tfn, $fn)) {
[all …]
/freebsd/tools/tools/hcomp/
H A Dhcomp.pl39 my $fn = shift;
44 warn("$fn\n")
47 open(FILE, "<", $fn)
48 or die("$fn: $!\n");
69 open(FILE, ">", "$fn.new")
70 or die("$fn.new: $!\n");
74 rename($fn, "$fn.$opt_b")
76 rename("$fn.new", $fn);
/freebsd/stand/kboot/libkboot/
H A Defi.c37 char fn[100];
45 snprintf(fn, sizeof(fn), "/sys/firmware/efi/runtime-map/%d/phys_addr", entries++);
46 } while (stat(fn, &sb) == 0);
75 snprintf(fn, sizeof(fn), "/sys/firmware/efi/runtime-map/%d/type", i);
76 if (!file2u32(fn, &m->md_type))
78 snprintf(fn, sizeof(fn), "/sys/firmware/efi/runtime-map/%d/phys_addr", i);
79 if (!file2u64(fn, &m->md_phys))
81 snprintf(fn, sizeof(fn), "/sys/firmware/efi/runtime-map/%d/virt_addr", i);
82 if (!file2u64(fn, &m->md_virt))
84 snprintf(fn, sizeof(fn), "/sys/firmware/efi/runtime-map/%d/num_pages", i);
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dmod.h126 #define module_init(fn) \ argument
128 wrap_ ## fn(void *dummy __unused) \
130 fn(); \
132 SYSINIT(zfs_ ## fn, SI_SUB_LAST, SI_ORDER_FIRST, wrap_ ## fn, NULL)
134 #define module_init_early(fn) \ argument
136 wrap_ ## fn(void *dummy __unused) \
138 fn(); \
140 SYSINIT(zfs_ ## fn, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST, wrap_ ## fn, NULL)
142 #define module_exit(fn) \ argument
144 wrap_ ## fn(void *dummy __unused) \
[all …]
/freebsd/stand/kboot/kboot/
H A Dhostdisk.c166 char fn[1024]; in hostdisk_add_parts() local
168 snprintf(fn, sizeof(fn), "%s/%s", SYSBLK, hd_name(hd)); in hostdisk_add_parts()
169 foreach_file(fn, hostdisk_one_part, hd, 0); in hostdisk_add_parts()
177 char fn[1024]; in hostdisk_add_drive() local
188 snprintf(fn, sizeof(fn), "%s/%s/queue/hw_sector_size", in hostdisk_add_drive()
190 if (!file2u64(fn, &hd->hd_sectorsize)) in hostdisk_add_drive()
211 hostdisk_find(const char *fn) in hostdisk_find() argument
216 if (strcmp(hd->hd_dev, fn) == 0) in hostdisk_find()
219 if (strcmp(md->hd_dev, fn) == 0) in hostdisk_find()
335 const char *fn; in hostdisk_open() local
[all …]
/freebsd/contrib/sendmail/libsmutil/
H A Dsafefile.c45 safefile(fn, uid, gid, user, flags, mode, st)
46 char *fn;
64 fn, (int) uid, (int) gid, flags, mode);
66 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf)
72 fn = fbuf;
82 if ((bitset(SFF_NOSLINK, flags) ? lstat(fn, st)
83 : stat(fn, st)) < 0)
85 if (stat(fn, st) < 0)
125 p = strrchr(fn, '/');
134 ret = safedirpath(fn, uid, gid, user,
[all …]

12345678910>>...30