/freebsd/lib/libcalendar/ |
H A D | calendar.c | 56 static date *date2idt(date *idt, date *dt); 57 static date *idt2date(date *dt, date *idt); 67 jdate(int ndays, date *dt) in jdate() argument 96 return (idt2date(dt, &idt)); in jdate() 104 ndaysj(date *dt) in ndaysj() argument 108 if (date2idt(&idt, dt) == NULL) in ndaysj() 131 gdate(int ndays, date *dt) in gdate() argument 174 return (idt2date(dt, &idt)); in gdate() 183 ndaysg(date *dt) in ndaysg() argument 187 if (date2idt(&idt, dt) == NULL) in ndaysg() [all …]
|
H A D | easter.c | 38 easterg(int y, date *dt) in easterg() argument 49 dt->m = 3 + (l + 40) / 44; in easterg() 50 dt->d = l + 28 - 31*(dt->m / 4); in easterg() 51 dt->y = y; in easterg() 52 return (dt); in easterg() 57 easterog(int y, date *dt) in easterog() argument 60 return (gdate(easterodn(y), dt)); in easterog() 65 easteroj(int y, date * dt) in easteroj() argument 68 return (jdate(easterodn(y), dt)); in easteroj() 85 date dt; in easterodn() local [all …]
|
/freebsd/usr.sbin/pw/ |
H A D | psdate.c | 160 parse_date(time_t dt, char const * str) in parse_date() argument 167 if (dt == 0) in parse_date() 168 dt = time(NULL); in parse_date() 174 dt = strtol(str, &p, 0); in parse_date() 180 dt += (val * 3600L); in parse_date() 185 dt += (val * 60L); in parse_date() 189 dt += val; in parse_date() 193 dt += (val * 86400L); in parse_date() 197 dt += (val * 604800L); in parse_date() 201 T = localtime(&dt); in parse_date() [all …]
|
/freebsd/lib/msun/src/ |
H A D | s_cbrtl.c | 36 double dr, dt, dx; in cbrtl() local 95 dt = ft; in cbrtl() 96 dr = dt * dt * dt; in cbrtl() 97 dt = dt * (dx + dx + dr) / (dx + dr + dr); in cbrtl() 100 dr = dt * dt * dt; in cbrtl() 101 dt = dt * (dx + dx + dr) / (dx + dr + dr); in cbrtl() 113 t = dt + vd - 0x1.0p32; in cbrtl() 123 t = dt + 0x2.0p-46 + 0x1.0p60L - 0x1.0p60; in cbrtl()
|
/freebsd/usr.bin/ncal/ |
H A D | ncal.c | 74 date dt; /* Last day of Julian calendar */ member 196 date dt; in main() local 242 nswitch = ndaysj(&dftswitch->dt); in main() 244 nswitch = ndaysj(&p->dt); in main() 344 nswitch = ndaysj(&(p->dt)); in main() 481 dt.y = strtol(flag_highlightdate, NULL, 10); in main() 482 dt.m = strtol(flag_highlightdate + 5, NULL, 10); in main() 483 dt.d = strtol(flag_highlightdate + 8, NULL, 10); in main() 490 dt.y = tm1->tm_year + 1900; in main() 491 dt.m = tm1->tm_mon + 1; in main() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soc/rockchip/ |
H A D | power_domain.txt | 26 "include/dt-bindings/power/px30-power.h" - for PX30 type power domain. 27 "include/dt-bindings/power/rk3036-power.h" - for RK3036 type power domain. 28 "include/dt-bindings/power/rk3066-power.h" - for RK3066 type power domain. 29 "include/dt-bindings/power/rk3128-power.h" - for RK3128 type power domain. 30 "include/dt-bindings/power/rk3188-power.h" - for RK3188 type power domain. 31 "include/dt-bindings/power/rk3228-power.h" - for RK3228 type power domain. 32 "include/dt-bindings/power/rk3288-power.h" - for RK3288 type power domain. 33 "include/dt-bindings/power/rk3328-power.h" - for RK3328 type power domain. 34 "include/dt-bindings/power/rk3366-power.h" - for RK3366 type power domain. 35 "include/dt-bindings/power/rk3368-power.h" - for RK3368 type power domain. [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | fse_decompress.c | 59 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildDTable() argument 61 void* const tdPtr = dt+1; /* because *dt is unsigned, 32-bits aligned on 32-bits */ in FSE_buildDTable() 87 memcpy(dt, &DTableH, sizeof(DTableH)); in FSE_buildDTable() 122 size_t FSE_buildDTable_rle (FSE_DTable* dt, BYTE symbolValue) in FSE_buildDTable_rle() argument 124 void* ptr = dt; in FSE_buildDTable_rle() 126 void* dPtr = dt + 1; in FSE_buildDTable_rle() 140 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits) in FSE_buildDTable_raw() argument 142 void* ptr = dt; in FSE_buildDTable_raw() 144 void* dPtr = dt + 1; in FSE_buildDTable_raw() 169 const FSE_DTable* dt, const unsigned fast) in FSE_decompress_usingDTable_generic() argument [all …]
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | fse_decompress.c | 66 void FSE_freeDTable (FSE_DTable* dt) in FSE_freeDTable() argument 68 ZSTD_free(dt); in FSE_freeDTable() 71 static size_t FSE_buildDTable_internal(FSE_DTable* dt, const short* normalizedCounter, unsigned max… in FSE_buildDTable_internal() argument 73 void* const tdPtr = dt+1; /* because *dt is unsigned, 32-bits aligned on 32-bits */ in FSE_buildDTable_internal() 101 ZSTD_memcpy(dt, &DTableH, sizeof(DTableH)); in FSE_buildDTable_internal() 176 size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue… in FSE_buildDTable_wksp() argument 178 …return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSi… in FSE_buildDTable_wksp() 187 size_t FSE_buildDTable_rle (FSE_DTable* dt, BYTE symbolValue) in FSE_buildDTable_rle() argument 189 void* ptr = dt; in FSE_buildDTable_rle() 191 void* dPtr = dt + 1; in FSE_buildDTable_rle() [all …]
|
/freebsd/contrib/ntp/adjtimed/ |
H A D | adjtimed.c | 279 register long rate, dt, leftover; in AdjustClockRate() local 282 dt = (delta->tv_sec * MILLION) + delta->tv_usec; in AdjustClockRate() 285 printf("adjtimed: new correction %.6fs\n", (double)dt / (double)MILLION); in AdjustClockRate() 287 msyslog(LOG_INFO, "new correction %.6fs", (double)dt / (double)MILLION); in AdjustClockRate() 290 rate = dt; in AdjustClockRate() 295 if (dt > 0) { in AdjustClockRate() 299 dt = -dt; in AdjustClockRate() 301 period.it_value.tv_sec = dt / slew_rate; in AdjustClockRate() 302 period.it_value.tv_usec = (dt % slew_rate) * (MILLION / slew_rate); in AdjustClockRate() 319 if (dt) { in AdjustClockRate() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/ |
H A D | Makefile | 2 DT_DOC_CHECKER ?= dt-doc-validate 3 DT_EXTRACT_EX ?= dt-extract-example 4 DT_MK_SCHEMA ?= dt-mk-schema 66 targets += .dt-binding.checked .yamllint.checked 70 $(obj)/.dt-binding.checked: $(DT_DOCS) FORCE 83 $(Q)$(srctree)/scripts/dtc/dt-extract-compatibles $(srctree) | xargs dt-check-compatible -v -s $< 86 dt_binding_check: $(obj)/.dt-binding.checked $(obj)/.yamllint.checked $(CHK_DT_EXAMPLES)
|
/freebsd/lib/libc/tests/gen/ |
H A D | glob2_test.c | 51 double dt; in ATF_TC_BODY() local 94 dt = t2.tv_sec + (double)t2.tv_nsec/1e9; in ATF_TC_BODY() 95 dt /= mul; in ATF_TC_BODY() 97 ATF_CHECK_MSG(dt < 1, "glob(3) took far too long: %d %.9f", i, in ATF_TC_BODY() 98 dt); in ATF_TC_BODY() 100 if (dt >= 0.0001) in ATF_TC_BODY()
|
/freebsd/usr.sbin/diskinfo/ |
H A D | diskinfo.c | 366 double dt; in delta_t() local 369 dt = (tv2.tv_usec - tv1.tv_usec) / 1e6; in delta_t() 370 dt += (tv2.tv_sec - tv1.tv_sec); in delta_t() 372 return (dt); in delta_t() 378 double dt; in TN() local 380 dt = delta_t(); in TN() 382 count, dt, dt * 1000.0 / count); in TN() 388 double dt; in TR() local 390 dt = delta_t(); in TR() 392 count, dt, count / dt); in TR() [all …]
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_calgps.h | 114 gpsntp_from_daytime1_ex(TcCivilDate *dt, l_fp fofs, l_fp pivot, int/*BOOL*/ warp); 117 gpsntp_from_daytime1(TcCivilDate *dt, l_fp fofs, l_fp pivot) { in gpsntp_from_daytime1() argument 118 return gpsntp_from_daytime1_ex(dt, fofs, pivot, TRUE); in gpsntp_from_daytime1() 122 gpsntp_from_daytime2_ex(TcCivilDate *dt, l_fp fofs, TcNtpDatum *pivot, int/*BOOL*/ warp); 125 gpsntp_from_daytime2(TcCivilDate *dt, l_fp fofs, TcNtpDatum *pivot) { in gpsntp_from_daytime2() argument 126 return gpsntp_from_daytime2_ex(dt, fofs, pivot, TRUE); in gpsntp_from_daytime2()
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/ |
H A D | zpool_import_010_pos.ksh | 60 typeset dt 61 for dt in $poolE $poolD $poolC $poolB $poolA; do 62 destroy_pool $dt 100 for dt in $poolA $poolB $poolC $poolD $poolE; do 101 log_must datasetexists $dt
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import_010_pos.ksh | 52 typeset dt 53 for dt in $poolE $poolD $poolC $poolB $poolA; do 54 destroy_pool $dt 88 for dt in $poolA $poolB $poolC $poolD $poolE; do 89 log_must datasetexists $dt
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | huf_decompress.c | 124 HUF_DEltX1* const dt = (HUF_DEltX1*)dtPtr; in HUF_readDTableX1_wksp() local 175 dt[uStart + u] = D; in HUF_readDTableX1_wksp() 179 dt[u + 0] = D; in HUF_readDTableX1_wksp() 180 dt[u + 1] = D; in HUF_readDTableX1_wksp() 181 dt[u + 2] = D; in HUF_readDTableX1_wksp() 182 dt[u + 3] = D; in HUF_readDTableX1_wksp() 195 HUF_decodeSymbolX1(BIT_DStream_t* Dstream, const HUF_DEltX1* dt, const U32 dtLog) in HUF_decodeSymbolX1() argument 198 BYTE const c = dt[val].byte; in HUF_decodeSymbolX1() 199 BIT_skipBits(Dstream, dt[val].nbBits); in HUF_decodeSymbolX1() 204 *ptr++ = HUF_decodeSymbolX1(DStreamPtr, dt, dtLog) [all …]
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | huf_decompress.c | 154 void const* dt; member 168 void const* dt = DTable + 1; in HUF_DecompressAsmArgs_init() local 246 args->dt = dt; in HUF_DecompressAsmArgs_init() 348 HUF_DEltX1* const dt = (HUF_DEltX1*)dtPtr; in HUF_readDTableX1_wksp_bmi2() local 430 dt[uStart] = D; in HUF_readDTableX1_wksp_bmi2() 439 dt[uStart+0] = D; in HUF_readDTableX1_wksp_bmi2() 440 dt[uStart+1] = D; in HUF_readDTableX1_wksp_bmi2() 447 MEM_write64(dt + uStart, D4); in HUF_readDTableX1_wksp_bmi2() 454 MEM_write64(dt + uStart, D4); in HUF_readDTableX1_wksp_bmi2() 455 MEM_write64(dt + uStart + 4, D4); in HUF_readDTableX1_wksp_bmi2() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/ |
H A D | t_convfp.c | 78 long double dt; in ATF_TC_BODY() local 86 } else if (sizeof(dt) > sizeof(ul)) { in ATF_TC_BODY() 87 dt = ULONG_TESTVALUE; in ATF_TC_BODY() 88 ul = (unsigned long)dt; in ATF_TC_BODY() 93 sizeof(ul), sizeof(d), sizeof(dt)); in ATF_TC_BODY()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dbuf.c | 1152 ASSERT(dr == NULL || dr->dt.dl.dr_data == db->db_buf); in dbuf_verify() 1556 if (dr == NULL || dr->dt.dl.dr_data != dnbuf) in dbuf_read_verify_dnode_crypt() 1698 (dr->dt.dl.dr_data != in dbuf_fix_old_data() 1713 dr->dt.dl.dr_data = kmem_alloc(bonuslen, KM_SLEEP); in dbuf_fix_old_data() 1715 memcpy(dr->dt.dl.dr_data, db->db.db_data, bonuslen); in dbuf_fix_old_data() 1733 dr->dt.dl.dr_data = arc_alloc_raw_buf(spa, db, in dbuf_fix_old_data() 1739 dr->dt.dl.dr_data = arc_alloc_compressed_buf(spa, db, in dbuf_fix_old_data() 1743 dr->dt.dl.dr_data = arc_alloc_buf(spa, db, type, size); in dbuf_fix_old_data() 1745 memcpy(dr->dt.dl.dr_data->b_data, db->db.db_data, size); in dbuf_fix_old_data() 1924 blkptr_t *bp = &dr->dt.dl.dr_overridden_by; in dbuf_unoverride() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/qcom/ |
H A D | pm660l.dtsi | 6 #include <dt-bindings/iio/qcom,spmi-vadc.h> 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/spmi/spmi.h> 10 #include <dt-bindings/thermal/thermal.h>
|
/freebsd/sys/contrib/device-tree/Bindings/clock/ |
H A D | maxim,max77686.txt | 12 dt-bindings/clock/maxim,max77686.h. 17 dt-bindings/clock/maxim,max77802.h. 21 dt-bindings/clock/maxim,max77620.h. 38 Clocks are defined as preprocessor macros in above dt-binding header for 45 #include <dt-bindings/clock/maxim,max77686.h> 70 #include <dt-bindings/clock/maxim,max77802.h> 96 #include <dt-bindings/clock/maxim,max77620.h>
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v03.c | 664 static size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits); 667 static size_t FSE_buildDTable_rle (FSE_DTable* dt, unsigned char symbolValue); 681 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt); 713 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument 716 memcpy(&DTableH, dt, sizeof(DTableH)); in FSE_initDState() 719 DStatePtr->table = dt + 1; in FSE_initDState() 1097 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1099 void* ptr = dt+1; in FSE_buildDTable() 1159 memcpy(dt, &DTableH, sizeof(DTableH)); in FSE_buildDTable() 1295 static size_t FSE_buildDTable_rle (FSE_DTable* dt, BYTE symbolValue) in FSE_buildDTable_rle() argument [all …]
|
H A D | zstd_v04.c | 493 static size_t FSE_buildDTable ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolV… 501 …usingDTable(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const FSE_DTable* dt); 837 static size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits); 840 static size_t FSE_buildDTable_rle (FSE_DTable* dt, unsigned char symbolValue); 855 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt); 886 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument 889 memcpy(&DTableH, dt, sizeof(DTableH)); in FSE_initDState() 892 DStatePtr->table = dt + 1; in FSE_initDState() 1073 static size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… in FSE_buildDTable() argument 1076 void* const tdPtr = dt+1; /* because dt is unsigned, 32-bits aligned on 32-bits */ in FSE_buildDTable() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/freescale/ |
H A D | imx8dxl.dtsi | 6 #include <dt-bindings/clock/imx8-clock.h> 7 #include <dt-bindings/dma/fsl-edma.h> 8 #include <dt-bindings/clock/imx8-lpcg.h> 9 #include <dt-bindings/firmware/imx/rsrc.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/pinctrl/pads-imx8dxl.h> 14 #include <dt-bindings/thermal/thermal.h>
|
/freebsd/sbin/bsdlabel/ |
H A D | disktab | 86 :dt=ESDI:ty=winchester:se#512:nt#9:ns#32:nc#813:sf: \ 93 :dt=ST506:ty=winchester:se#512:nt#13:ns#17:nc#565:\ 100 :dt=SCSI:ty=winchester:se#512:nt#10:ns#35:nc#825:\ 107 :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766: \ 121 :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766: \ 131 :dt=ESDI:ty=winchester:se#512:nt#15:ns#36:nc#1222:sf: \ 139 :ty=winchester:dt=ESDI:se#512:nt#15:ns#35:nc#1223:rm#3600:sf: \ 147 :ty=winchester:dt=IDA:se#512:nt#16:ns#63:nc#1644:rm#3600:\ 157 :ty=winchester:dt=ESDI:se#512:nt#16:ns#63:nc#954:rm#3600:\ 164 :ty=removable:dt=SCSI:se#512:nt#1:ns#31:nc#18600:ts#1:rm#4800:\ [all …]
|