| /freebsd-14-stable/lib/msun/src/ |
| HD | e_scalbf.c | 21 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 …]
|
| HD | e_scalb.c | 25 scalb(double x, int fn) in scalb() argument 28 scalb(double x, double fn) in scalb() 32 return scalbn(x,fn); in scalb() 34 if (isnan(x)||isnan(fn)) return x*fn; in scalb() 35 if (!finite(fn)) { in scalb() 36 if(fn>0.0) return x*fn; in scalb() 37 else return x/(-fn); in scalb() 39 if (rint(fn)!=fn) return (fn-fn)/(fn-fn); in scalb() 40 if ( fn > 65000.0) return scalbn(x, 65000); in scalb() 41 if (-fn > 65000.0) return scalbn(x,-65000); in scalb() [all …]
|
| /freebsd-14-stable/include/ |
| HD | tgmath.h | 65 #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-14-stable/contrib/netbsd-tests/lib/libc/regex/ |
| HD | split.c | 51 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-14-stable/lib/libc/regex/grot/ |
| HD | split.c | 20 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-14-stable/lib/libutil/tests/ |
| HD | flopen_test.c | 48 const char *fn = "test_flopen_create"; in test_flopen_create() local 52 unlink(fn); in test_flopen_create() 53 fd = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_create() 59 unlink(fn); in test_flopen_create() 69 const char *fn = "test_flopen_open"; in test_flopen_open() local 73 fd = open(fn, O_RDWR|O_CREAT, 0640); in test_flopen_open() 78 fd = flopen(fn, O_RDWR); in test_flopen_open() 85 unlink(fn); in test_flopen_open() 95 const char *fn = "test_flopen_lock_self"; in test_flopen_lock_self() local 99 unlink(fn); in test_flopen_lock_self() [all …]
|
| HD | pidfile_test.c | 61 const char *fn = "test_pidfile_uncontested"; in test_pidfile_uncontested() local 65 unlink(fn); in test_pidfile_uncontested() 66 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested() 73 unlink(fn); in test_pidfile_uncontested() 77 unlink(fn); in test_pidfile_uncontested() 87 const char *fn = "test_pidfile_self"; in test_pidfile_self() local 92 unlink(fn); in test_pidfile_self() 93 pf1 = pidfile_open(fn, 0600, &other); in test_pidfile_self() 101 unlink(fn); in test_pidfile_self() 105 pf2 = pidfile_open(fn, 0600, &other); in test_pidfile_self() [all …]
|
| /freebsd-14-stable/lib/libc/stdlib/ |
| HD | atexit.c | 137 struct atexit_fn fn; in atexit() local 140 fn.fn_type = ATEXIT_FN_STD; in atexit() 141 fn.fn_ptr.std_func = func; in atexit() 142 fn.fn_arg = NULL; in atexit() 143 fn.fn_dso = NULL; in atexit() 145 error = atexit_register(&fn); in atexit() 156 struct atexit_fn fn; in atexit_b() local 166 fn.fn_type = ATEXIT_FN_CXA; in atexit_b() 167 fn.fn_ptr.cxa_func = (void(*)(void*))GET_BLOCK_FUNCTION(func); in atexit_b() 168 fn.fn_arg = func; in atexit_b() [all …]
|
| /freebsd-14-stable/sys/compat/linuxkpi/common/include/linux/ |
| HD | module.h | 90 void (*fn)(void); in _module_run() local 102 fn = arg; in _module_run() 103 fn(); in _module_run() 106 #define module_init(fn) \ argument 107 SYSINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_FIRST, _module_run, (fn)) 109 #define module_exit(fn) \ argument 110 SYSUNINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_SECOND, _module_run, (fn)) 116 #define module_init_order(fn, order) \ argument 117 SYSINIT(fn, SI_SUB_OFED_MODINIT, (order), _module_run, (fn)) 119 #define module_exit_order(fn, order) \ argument [all …]
|
| /freebsd-14-stable/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
| HD | xattr_compat.h | 43 #define ZPL_XATTR_LIST_WRAPPER(fn) \ argument 45 fn(struct dentry *dentry) \ 47 return (!!__ ## fn(dentry->d_inode, NULL, 0, NULL, 0)); \ 55 #define ZPL_XATTR_GET_WRAPPER(fn) \ argument 57 fn(const struct xattr_handler *handler, struct dentry *dentry, \ 61 return (__ ## fn(inode, name, buffer, size)); \ 64 #define ZPL_XATTR_GET_WRAPPER(fn) \ argument 66 fn(const struct xattr_handler *handler, struct dentry *dentry, \ 69 return (__ ## fn(inode, name, buffer, size)); \ 80 #define ZPL_XATTR_SET_WRAPPER(fn) \ argument [all …]
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath10k/ |
| HD | zzz_fw_ports_fwget.sh | 127 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-14-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_win_dll_thunk.h | 94 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 95 fn(); \ 102 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 103 fn(arg); \ 110 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 111 fn(arg1, arg2); \ 118 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 119 fn(arg1, arg2, arg3); \ 126 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 127 return fn(); \ [all …]
|
| /freebsd-14-stable/sys/dev/sdio/ |
| HD | sdiob.c | 144 sdiob_rw_direct_sc(struct sdiob_softc *sc, uint8_t fn, uint32_t addr, bool wr, in sdiob_rw_direct_sc() argument 159 fn, addr, wr, *val)); in sdiob_rw_direct_sc() 162 arg = SD_IO_RW_FUNC(fn) | SD_IO_RW_ADR(addr); in sdiob_rw_direct_sc() 174 /*timeout*/ sc->cardinfo.f[fn].timeout); in sdiob_rw_direct_sc() 197 sdio_rw_direct(device_t dev, uint8_t fn, uint32_t addr, bool wr, in sdio_rw_direct() argument 205 error = sdiob_rw_direct_sc(sc, fn, addr, wr, val); in sdio_rw_direct() 211 sdiob_read_direct(device_t dev, uint8_t fn, uint32_t addr, uint8_t *val) in sdiob_read_direct() argument 216 error = sdio_rw_direct(dev, fn, addr, false, &v); in sdiob_read_direct() 224 sdiob_write_direct(device_t dev, uint8_t fn, uint32_t addr, uint8_t val) in sdiob_write_direct() argument 227 return (sdio_rw_direct(dev, fn, addr, true, &val)); in sdiob_write_direct() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath12k/ |
| HD | zzz_fw_ports_fwget.sh | 147 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-14-stable/sys/contrib/dev/athk/ath11k/ |
| HD | zzz_fw_ports_fwget.sh | 154 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-14-stable/crypto/heimdal/lib/roken/ |
| HD | test-readenv.c | 60 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-14-stable/contrib/netbsd-tests/lib/libm/ |
| HD | t_libm.h | 10 #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-14-stable/tools/build/ |
| HD | freebsd-yeet.pl | 17 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-14-stable/tools/tools/ansify/ |
| HD | ansify.pl | 40 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-14-stable/tools/tools/hcomp/ |
| HD | hcomp.pl | 39 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-14-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| HD | mod_os.h | 113 #define module_init(fn) \ argument 115 wrap_ ## fn(void *dummy __unused) \ 117 fn(); \ 119 SYSINIT(zfs_ ## fn, SI_SUB_LAST, SI_ORDER_FIRST, wrap_ ## fn, NULL) 121 #define module_init_early(fn) \ argument 123 wrap_ ## fn(void *dummy __unused) \ 125 fn(); \ 127 SYSINIT(zfs_ ## fn, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST, wrap_ ## fn, NULL) 129 #define module_exit(fn) \ argument 131 wrap_ ## fn(void *dummy __unused) \ [all …]
|
| /freebsd-14-stable/usr.bin/cksum/ |
| HD | print.c | 47 pcrc(char *fn, uint32_t val, off_t len) in pcrc() argument 50 if (fn != NULL) in pcrc() 51 (void)printf(" %s", fn); in pcrc() 56 psum1(char *fn, uint32_t val, off_t len) in psum1() argument 59 if (fn != NULL) in psum1() 60 (void)printf(" %s", fn); in psum1() 65 psum2(char *fn, uint32_t val, off_t len) in psum2() argument 68 if (fn != NULL) in psum2() 69 (void)printf(" %s", fn); in psum2()
|
| /freebsd-14-stable/lib/libc/csu/ |
| HD | libc_start1.c | 83 void (*fn)(void); in finalizer() local 88 fn = __fini_array_start[n - 1]; in finalizer() 89 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in finalizer() 90 (fn)(); in finalizer() 100 void (*fn)(int, char **, char **); in handle_static_init() local 110 fn = __preinit_array_start[n]; in handle_static_init() 111 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in handle_static_init() 112 fn(argc, argv, env); in handle_static_init() 117 fn = __init_array_start[n]; in handle_static_init() 118 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in handle_static_init() [all …]
|
| /freebsd-14-stable/stand/kboot/kboot/ |
| HD | hostdisk.c | 166 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-14-stable/contrib/openpam/misc/ |
| HD | gendoc.pl | 101 my $fn = shift; 122 if ($fn !~ m,\.c$,) { 123 warn("$fn: not C source, ignoring\n"); 127 open(FILE, "<", "$fn") 128 or die("$fn: open(): $!\n"); 152 $func = $fn; 155 warn("$fn: can't find $func\n"); 332 'source' => $fn, 362 my $fn; 382 $fn = $$func{source}; [all …]
|