Home
last modified time | relevance | path

Searched refs:U64 (Results 1 – 25 of 153) sorted by relevance

1234567

/freebsd/crypto/openssl/crypto/sha/
H A Dsha512.c67 #define U64(C) C##UI64 macro
69 #define U64(C) C##UL macro
71 #define U64(C) C##ULL macro
76 c->h[0] = U64(0x8c3d37c819544da2); in sha512_224_init()
77 c->h[1] = U64(0x73e1996689dcd4d6); in sha512_224_init()
78 c->h[2] = U64(0x1dfab7ae32ff9c82); in sha512_224_init()
79 c->h[3] = U64(0x679dd514582f9fcf); in sha512_224_init()
80 c->h[4] = U64(0x0f6d2b697bd44da8); in sha512_224_init()
81 c->h[5] = U64(0x77e36f7304c48942); in sha512_224_init()
82 c->h[6] = U64(0x3f9d85a86a1d36c8); in sha512_224_init()
[all …]
/freebsd/crypto/openssl/crypto/aes/
H A Daes_core.c56 #define U64(C) C##UI64 macro
58 #define U64(C) C##UL macro
60 #define U64(C) C##ULL macro
91 b = a & U64(0x8080808080808080); in XtimeLong()
94 b &= U64(0x1B1B1B1B1B1B1B1B); in XtimeLong()
241 y = ((x & U64(0xFEFEFEFEFEFEFEFE)) >> 1) | ((x & U64(0x0101010101010101)) << 7); in SubLong()
242 x &= U64(0xDDDDDDDDDDDDDDDD); in SubLong()
243 x ^= y & U64(0x5757575757575757); in SubLong()
244 y = ((y & U64(0xFEFEFEFEFEFEFEFE)) >> 1) | ((y & U64(0x0101010101010101)) << 7); in SubLong()
245 x ^= y & U64(0x1C1C1C1C1C1C1C1C); in SubLong()
[all …]
/freebsd/sys/contrib/zstd/lib/common/
H A Dmem.h49 typedef uint64_t U64; typedef
71 typedef unsigned long long U64; typedef
86 MEM_STATIC U64 MEM_read64(const void* memPtr);
91 MEM_STATIC void MEM_write64(void* memPtr, U64 value);
97 MEM_STATIC U64 MEM_readLE64(const void* memPtr);
103 MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64);
108 MEM_STATIC U64 MEM_readBE64(const void* memPtr);
112 MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64);
117 MEM_STATIC U64 MEM_swap64(U64 in);
168 MEM_STATIC U64 MEM_read64(const void* memPtr) { return *(const U64*) memPtr; } in MEM_read64()
[all …]
H A Dbits.h93 MEM_STATIC unsigned ZSTD_countTrailingZeros64(U64 val) in ZSTD_countTrailingZeros64()
125 MEM_STATIC unsigned ZSTD_countLeadingZeros64(U64 val) in ZSTD_countLeadingZeros64()
161 return ZSTD_countTrailingZeros64((U64)val) >> 3; in ZSTD_NbCommonBytes()
167 return ZSTD_countLeadingZeros64((U64)val) >> 3; in ZSTD_NbCommonBytes()
185 U64 ZSTD_rotateRight_U64(U64 const value, U32 count) { in ZSTD_rotateRight_U64()
188 return (value >> count) | (U64)(value << ((0U - count) & 0x3F)); in ZSTD_rotateRight_U64()
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dmem.h50 typedef uint64_t U64; typedef
72 typedef unsigned long long U64; typedef
87 MEM_STATIC U64 MEM_read64(const void* memPtr);
92 MEM_STATIC void MEM_write64(void* memPtr, U64 value);
98 MEM_STATIC U64 MEM_readLE64(const void* memPtr);
104 MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64);
109 MEM_STATIC U64 MEM_readBE64(const void* memPtr);
113 MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64);
118 MEM_STATIC U64 MEM_swap64(U64 in);
169 MEM_STATIC U64 MEM_read64(const void* memPtr) { return *(const U64*) memPtr; } in MEM_read64()
[all …]
H A Dbits.h94 MEM_STATIC unsigned ZSTD_countTrailingZeros64(U64 val) in ZSTD_countTrailingZeros64()
126 MEM_STATIC unsigned ZSTD_countLeadingZeros64(U64 val) in ZSTD_countLeadingZeros64()
162 return ZSTD_countTrailingZeros64((U64)val) >> 3; in ZSTD_NbCommonBytes()
168 return ZSTD_countLeadingZeros64((U64)val) >> 3; in ZSTD_NbCommonBytes()
186 U64 ZSTD_rotateRight_U64(U64 const value, U32 count) { in ZSTD_rotateRight_U64()
189 return (value >> count) | (U64)(value << ((0U - count) & 0x3F)); in ZSTD_rotateRight_U64()
/freebsd/sys/crypto/openssl/
H A Dossl_sha512.c33 c->h[0] = U64(0xcbbb9d5dc1059ed8); in ossl_sha384_init()
34 c->h[1] = U64(0x629a292a367cd507); in ossl_sha384_init()
35 c->h[2] = U64(0x9159015a3070dd17); in ossl_sha384_init()
36 c->h[3] = U64(0x152fecd8f70e5939); in ossl_sha384_init()
37 c->h[4] = U64(0x67332667ffc00b31); in ossl_sha384_init()
38 c->h[5] = U64(0x8eb44a8768581511); in ossl_sha384_init()
39 c->h[6] = U64(0xdb0c2e0d64f98fa7); in ossl_sha384_init()
40 c->h[7] = U64(0x47b5481dbefa4fa4); in ossl_sha384_init()
52 c->h[0] = U64(0x6a09e667f3bcc908); in ossl_sha512_init()
53 c->h[1] = U64(0xbb67ae8584caa73b); in ossl_sha512_init()
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_preSplit.c93 static U64 abs64(S64 s64) { return (U64)((s64 < 0) ? -s64 : s64); } in abs64()
95 static U64 fpDistance(const Fingerprint* fp1, const Fingerprint* fp2, unsigned hashLog) in fpDistance()
97 U64 distance = 0; in fpDistance()
117 { U64 p50 = (U64)ref->nbEvents * (U64)newfp->nbEvents; in compareFingerprints()
118 U64 deviation = fpDistance(ref, newfp, hashLog); in compareFingerprints()
119 U64 threshold = p50 * (U64)(THRESHOLD_BASE + penalty) / THRESHOLD_PENALTY_RATE; in compareFingerprints()
219 { U64 const distFromBegin = fpDistance(&fpstats->pastEvents, middleEvents, 8); in ZSTD_splitBlock_fromBorders()
220 U64 const distFromEnd = fpDistance(&fpstats->newEvents, middleEvents, 8); in ZSTD_splitBlock_fromBorders()
221 U64 const minDistance = SEGMENT_SIZE * SEGMENT_SIZE / 3; in ZSTD_splitBlock_fromBorders()
H A Dzstd_compress_internal.h287 …U64 hashSalt; /* For row-based matchFinder: salts the hash for reuse of…
908 static const U64 prime5bytes = 889523592379ULL;
909 static size_t ZSTD_hash5(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-40)) … in ZSTD_hash5()
911 static size_t ZSTD_hash5PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash5(MEM_readLE64(p), h, s… in ZSTD_hash5PtrS()
913 static const U64 prime6bytes = 227718039650203ULL;
914 static size_t ZSTD_hash6(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-48)) … in ZSTD_hash6()
916 static size_t ZSTD_hash6PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash6(MEM_readLE64(p), h, s… in ZSTD_hash6PtrS()
918 static const U64 prime7bytes = 58295818150454627ULL;
919 static size_t ZSTD_hash7(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-56)) … in ZSTD_hash7()
921 static size_t ZSTD_hash7PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash7(MEM_readLE64(p), h, s… in ZSTD_hash7PtrS()
[all …]
H A Dfse_compress.c121 { U64 const add = 0x0101010101010101ull; in FSE_buildCTable_wksp()
123 U64 sv = 0; in FSE_buildCTable_wksp()
446 { U64 const vStepLog = 62 - tableLog; in FSE_normalizeM2()
447 U64 const mid = (1ULL << (vStepLog-1)) - 1; in FSE_normalizeM2()
448 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
449 U64 tmpTotal = mid; in FSE_normalizeM2()
452 U64 const end = tmpTotal + (count[s] * rStep); in FSE_normalizeM2()
477 U64 const scale = 62 - tableLog; in FSE_normalizeCount()
478 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
479 U64 const vStep = 1ULL<<(scale-20); in FSE_normalizeCount()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_preSplit.c94 static U64 ZSTD_abs64(S64 s64) { return (U64)((s64 < 0) ? -s64 : s64); } in ZSTD_abs64()
96 static U64 fpDistance(const Fingerprint* fp1, const Fingerprint* fp2, unsigned hashLog) in fpDistance()
98 U64 distance = 0; in fpDistance()
118 { U64 p50 = (U64)ref->nbEvents * (U64)newfp->nbEvents; in compareFingerprints()
119 U64 deviation = fpDistance(ref, newfp, hashLog); in compareFingerprints()
120 U64 threshold = p50 * (U64)(THRESHOLD_BASE + penalty) / THRESHOLD_PENALTY_RATE; in compareFingerprints()
220 { U64 const distFromBegin = fpDistance(&fpstats->pastEvents, middleEvents, 8); in ZSTD_splitBlock_fromBorders()
221 U64 const distFromEnd = fpDistance(&fpstats->newEvents, middleEvents, 8); in ZSTD_splitBlock_fromBorders()
222 U64 const minDistance = SEGMENT_SIZE * SEGMENT_SIZE / 3; in ZSTD_splitBlock_fromBorders()
H A Dzstd_compress_internal.h288 …U64 hashSalt; /* For row-based matchFinder: salts the hash for reuse of…
909 static const U64 prime5bytes = 889523592379ULL;
910 static size_t ZSTD_hash5(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-40)) … in ZSTD_hash5()
912 static size_t ZSTD_hash5PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash5(MEM_readLE64(p), h, s… in ZSTD_hash5PtrS()
914 static const U64 prime6bytes = 227718039650203ULL;
915 static size_t ZSTD_hash6(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-48)) … in ZSTD_hash6()
917 static size_t ZSTD_hash6PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash6(MEM_readLE64(p), h, s… in ZSTD_hash6PtrS()
919 static const U64 prime7bytes = 58295818150454627ULL;
920 static size_t ZSTD_hash7(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-56)) … in ZSTD_hash7()
922 static size_t ZSTD_hash7PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash7(MEM_readLE64(p), h, s… in ZSTD_hash7PtrS()
[all …]
H A Dfse_compress.c122 { U64 const add = 0x0101010101010101ull; in FSE_buildCTable_wksp()
124 U64 sv = 0; in FSE_buildCTable_wksp()
447 { U64 const vStepLog = 62 - tableLog; in FSE_normalizeM2()
448 U64 const mid = (1ULL << (vStepLog-1)) - 1; in FSE_normalizeM2()
449 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
450 U64 tmpTotal = mid; in FSE_normalizeM2()
453 U64 const end = tmpTotal + (count[s] * rStep); in FSE_normalizeM2()
478 U64 const scale = 62 - tableLog; in FSE_normalizeCount()
479 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
480 U64 const vStep = 1ULL<<(scale-20); in FSE_normalizeCount()
[all …]
/freebsd/sys/dev/mpt/mpilib/
H A Dmpi_cnfg.h744 U64 BaseWWID; /* 04h */
750 U64 ForceWWID[MPI_MANPAGE5_NUM_FORCEWWID]; /* 18h */
861 U64 UniqueValue; /* 04h */
1368 U64 WWPN; /* 00h */
1387 U64 SASAddress; /* 00h */
1406 U64 EnclosureLogicalID; /* 00h */
1466 U64 ReassignmentBaseWWID; /* 04h */
1736 U64 WWNN; /* 10h */
1737 U64 WWPN; /* 18h */
1742 U64 FabricWWNN; /* 30h */
[all …]
/freebsd/sys/dev/mps/mpi/
H A Dmpi2_cnfg.h588 U64 WWID; /* 0x00 */
589 U64 DeviceName; /* 0x08 */
737 U64 UniqueValue; /* 0x04 */
809 U64 RaidAcceleratorBufferBaseAddress; /* 0x04 */
810 U64 RaidAcceleratorBufferSize; /* 0x0C */
811 U64 RaidAcceleratorControlBaseAddress; /* 0x14 */
842 U64 RaidAcceleratorHostControlBaseAddress; /* 0x08 */
1131 U64 SASAddress; /* 0x00 */
1140 U64 EnclosureLogicalID; /* 0x00 */
1152 U64 DeviceName; /* 0x00 */
[all …]
/freebsd/sys/dev/mpi3mr/mpi/
H A Dmpi30_transport.h134 U64 IOCInformation; /* 0x00 */
142 U64 AdminRequestQueueAddress; /* 0x28 */
143 U64 AdminReplyQueueAddress; /* 0x30 */
159 U64 HCBAddress; /* 0x1C30 */
165 U64 DiagRWData; /* 0x1C50 */
166 U64 DiagRWAddress; /* 0x1C58 */
397 U64 ReplyFrameAddress; /* 0x00 */
480 U64 Address; /* 0x00 */
496 U64 Reserved00; /* 0x00 */
H A Dmpi30_tool.h313 U64 Phys; /* 0x10 */
331 U64 TestedPhys; /* 0x10 */
332 U64 FailedPhys; /* 0x18 */
357 U64 Address; /* 0x10 */
445 U64 Context; /* 0x10 */
474 U64 Context; /* 0x10 */
H A Dmpi30_ioc.h63 U64 TimeStamp; /* 0x10 */
69 U64 ReplyFreeQueueAddress; /* 0x20 */
73 U64 SenseBufferFreeQueueAddress; /* 0x30 */
74 U64 DriverInformationAddress; /* 0x38 */
319 U64 BaseAddress; /* 0x18 */
368 U64 BaseAddress; /* 0x18 */
621 U64 WWID; /* 0x08 */
811 U64 TimeStamp; /* 0x00 */
845 U64 SASAddress; /* 0x08 */
954 U64 Timestamp; /* 0x00 */
[all …]
/freebsd/sys/dev/isci/
H A Denvironment.h57 typedef uint64_t U64; typedef
66 typedef U64 SATI_LBA;
72 ((physical_address) = ((U64)(address_upper))<<32 | (address_lower))
/freebsd/sys/contrib/zstd/programs/
H A Dutil.h169 U64 UTIL_getFileSizeStat(const stat_t* statbuf);
214 #define UTIL_FILESIZE_UNKNOWN ((U64)(-1))
215 U64 UTIL_getFileSize(const char* infilename);
216 U64 UTIL_getTotalFileSize(const char* const * fileNamesTable, unsigned nbFiles);
233 UTIL_HumanReadableSize_t UTIL_makeHumanReadableSize(U64 size);
H A Dfileio_asyncio.h58 U64 nextReadOffset;
59 U64 waitingOnOffset;
95 U64 offset;
/freebsd/sys/dev/isci/scil/
H A Dsci_base_memory_descriptor_list_decorator.c100 U64 physical_address; in sci_mdl_decorator_assign_memory()
103 = ((U64) sci_cb_physical_address_lower(sci_physical_address)) in sci_mdl_decorator_assign_memory()
104 | (((U64) sci_cb_physical_address_upper(sci_physical_address)) << 32); in sci_mdl_decorator_assign_memory()
/freebsd/sys/dev/mpr/mpi/
H A Dmpi2_cnfg.h778 U64 WWID; /* 0x00 */
779 U64 DeviceName; /* 0x08 */
939 U64 UniqueValue; /* 0x04 */
1018 U64 RaidAcceleratorBufferBaseAddress; /* 0x04 */
1019 U64 RaidAcceleratorBufferSize; /* 0x0C */
1020 U64 RaidAcceleratorControlBaseAddress; /* 0x14 */
1051 U64 RaidAcceleratorHostControlBaseAddress; /* 0x08 */
1586 U64 SASAddress; /* 0x00 */
1595 U64 EnclosureLogicalID; /* 0x00 */
1607 U64 DeviceName; /* 0x00 */
[all …]
H A Dmpi2_ioc.h250 U64 SystemRequestFrameBaseAddress; /* 0x28 */
251 U64 ReplyDescriptorPostQueueAddress;/* 0x30 */
252 U64 ReplyFreeQueueAddress; /* 0x38 */
253 U64 TimeStamp; /* 0x40 */
289 U64 RDPQBaseAddress; /* 0x00 */
623 U64 TimeStamp; /* 0x00 */
764 U64 SASAddress; /* 0x0C */
992 U64 SASAddress; /* 0x04 */
1008 U64 SASAddress; /* 0x04 */
1093 U64 EnclosureLogicalID; /* 0x04 */
[all …]
/freebsd/sys/dev/pms/freebsd/driver/common/
H A Dlxutil.c647 *VirtAlloc = (void*)( (U64)pmsc->typh_mem + pmsc->typhIdx ); in agtiapi_MemAlloc()
650 residAlign = (U64)*VirtAddr - (U64)*VirtAlloc; // find alignment needed in agtiapi_MemAlloc()
654 pDmaAddr = (vm_paddr_t*)( (U64)pmsc->typh_busaddr + pmsc->tyPhsIx ); in agtiapi_MemAlloc()
656 (vm_paddr_t*)( ( (U64)pDmaAddr + alignOffset ) & ~alignOffset ); in agtiapi_MemAlloc()
658 residAlign = (U64)lPhysAligned - (U64)pDmaAddr; // find alignment needed in agtiapi_MemAlloc()
660 *pPhysAddrUp = HIGH_32_BITS( (U64)lPhysAligned ); in agtiapi_MemAlloc()
661 *pPhysAddrLow = LOW_32_BITS( (U64)lPhysAligned ); in agtiapi_MemAlloc()

1234567