/freebsd/crypto/openssl/crypto/aes/ |
H A D | aes_x86core.c | 84 #define U64(C) C##UI64 macro 87 #define U64(C) C##UL macro 90 #define U64(C) C##ULL macro 135 U64(0xa56363c6a56363c6), U64(0x847c7cf8847c7cf8), 136 U64(0x997777ee997777ee), U64(0x8d7b7bf68d7b7bf6), 137 U64(0x0df2f2ff0df2f2ff), U64(0xbd6b6bd6bd6b6bd6), 138 U64(0xb16f6fdeb16f6fde), U64(0x54c5c59154c5c591), 139 U64(0x5030306050303060), U64(0x0301010203010102), 140 U64(0xa96767cea96767ce), U64(0x7d2b2b567d2b2b56), 141 U64(0x19fefee719fefee7), U64(0x62d7d7b562d7d7b5), [all …]
|
H A D | aes_core.c | 56 # 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/crypto/openssl/crypto/sha/ |
H A D | sha512.c | 71 # define U64(C) C##UI64 macro 73 # define U64(C) C##UL macro 75 # define U64(C) C##ULL macro 80 c->h[0] = U64(0x8c3d37c819544da2); in sha512_224_init() 81 c->h[1] = U64(0x73e1996689dcd4d6); in sha512_224_init() 82 c->h[2] = U64(0x1dfab7ae32ff9c82); in sha512_224_init() 83 c->h[3] = U64(0x679dd514582f9fcf); in sha512_224_init() 84 c->h[4] = U64(0x0f6d2b697bd44da8); in sha512_224_init() 85 c->h[5] = U64(0x77e36f7304c48942); in sha512_224_init() 86 c->h[6] = U64(0x3f9d85a86a1d36c8); in sha512_224_init() [all …]
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | mem.h | 60 typedef uint64_t U64; typedef 82 typedef unsigned long long U64; 98 MEM_STATIC U64 MEM_read64(const void* memPtr); 103 MEM_STATIC void MEM_write64(void* memPtr, U64 value); 109 MEM_STATIC U64 MEM_readLE64(const void* memPtr); 115 MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64); 120 MEM_STATIC U64 MEM_readBE64(const void* memPtr); 124 MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64); 129 MEM_STATIC U64 MEM_swap64(U64 in); 184 MEM_STATIC U64 MEM_read64(const void* memPtr) { return *(const U64*) memPtr; } in MEM_read64() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | mem.h | 131 typedef uint64_t U64; typedef 151 typedef unsigned long long U64; typedef 195 MEM_STATIC U64 MEM_read64(const void* memPtr) { return *(const U64*) memPtr; } in MEM_read64() 200 MEM_STATIC void MEM_write64(void* memPtr, U64 value) { *(U64*)memPtr = value; } in MEM_write64() 210 typedef struct { U64 v; } unalign64; 216 typedef struct { U64 v; } __attribute__((packed)) unalign64; 222 MEM_STATIC U64 MEM_read64(const void* ptr) { return ((const unalign64*)ptr)->v; } in MEM_read64() 227 MEM_STATIC void MEM_write64(void* memPtr, U64 value) { ((unalign64*)memPtr)->v = value; } in MEM_write64() 244 MEM_STATIC U64 MEM_read64(const void* memPtr) in MEM_read64() 246 U64 val; memcpy(&val, memPtr, sizeof(val)); return val; in MEM_read64() [all …]
|
H A D | xxhash.c | 131 typedef uint64_t U64; typedef 137 …typedef unsigned long long U64; /* if your compiler doesn't support unsigned long long, replace … typedef 146 static U64 XXH_read64(const void* memPtr) { return *(const U64*) memPtr; } in XXH_read64() 152 typedef union { U32 u32; U64 u64; } __attribute__((packed)) unalign; 155 static U64 XXH_read64(const void* ptr) { return ((const unalign*)ptr)->u64; } in XXH_read64() 170 static U64 XXH_read64(const void* memPtr) in XXH_read64() 172 U64 val; in XXH_read64() 213 static U64 XXH_swap64 (U64 x) in XXH_swap64() 262 FORCE_INLINE_TEMPLATE U64 XXH_readLE64_align(const void* ptr, XXH_endianess endian, XXH_alignment a… in XXH_readLE64_align() 267 return endian==XXH_littleEndian ? *(const U64*)ptr : XXH_swap64(*(const U64*)ptr); in XXH_readLE64_align() [all …]
|
/freebsd/sys/crypto/openssl/ |
H A D | ossl_sha512.c | 33 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/dev/mpt/mpilib/ |
H A D | mpi_cnfg.h | 744 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/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress_internal.h | 171 U64 hashPower; /* Used to compute the rolling hash. 502 return _BitScanForward64( &r, (U64)val ) ? (unsigned)(r >> 3) : 0; in ZSTD_NbCommonBytes() 504 return (__builtin_ctzll((U64)val) >> 3); in ZSTD_NbCommonBytes() 514 return DeBruijnBytePos[((U64)((val & -(long long)val) * 0x0218A392CDABBD3FULL)) >> 58]; in ZSTD_NbCommonBytes() 613 static const U64 prime5bytes = 889523592379ULL; 614 static size_t ZSTD_hash5(U64 u, U32 h) { return (size_t)(((u << (64-40)) * prime5bytes) >> (64-h))… in ZSTD_hash5() 617 static const U64 prime6bytes = 227718039650203ULL; 618 static size_t ZSTD_hash6(U64 u, U32 h) { return (size_t)(((u << (64-48)) * prime6bytes) >> (64-h))… in ZSTD_hash6() 621 static const U64 prime7bytes = 58295818150454627ULL; 622 static size_t ZSTD_hash7(U64 u, U32 h) { return (size_t)(((u << (64-56)) * prime7bytes) >> (64-h))… in ZSTD_hash7() [all …]
|
H A D | fse_compress.c | 415 { U64 const vStepLog = 62 - tableLog; in FSE_normalizeM2() 416 U64 const mid = (1ULL << (vStepLog-1)) - 1; in FSE_normalizeM2() 417 … U64 const rStep = ((((U64)1<<vStepLog) * ToDistribute) + mid) / total; /* scale on remaining */ in FSE_normalizeM2() 418 U64 tmpTotal = mid; in FSE_normalizeM2() 421 U64 const end = tmpTotal + (count[s] * rStep); in FSE_normalizeM2() 446 U64 const scale = 62 - tableLog; in FSE_normalizeCount() 447 U64 const step = ((U64)1<<62) / total; /* <== here, one division ! */ in FSE_normalizeCount() 448 U64 const vStep = 1ULL<<(scale-20); in FSE_normalizeCount() 464 U64 restToBeat = vStep * rtbTable[proba]; in FSE_normalizeCount() 465 proba += (count[s]*step) - ((U64)proba<<scale) > restToBeat; in FSE_normalizeCount()
|
H A D | zstd_ldm.c | 68 static U32 ZSTD_ldm_getSmallHash(U64 value, U32 numBits) in ZSTD_ldm_getSmallHash() 77 static U32 ZSTD_ldm_getChecksum(U64 hash, U32 numBitsToDiscard) in ZSTD_ldm_getChecksum() 89 static U32 ZSTD_ldm_getTag(U64 hash, U32 hbits, U32 numTagBits) in ZSTD_ldm_getTag() 130 U64 const rollingHash, in ZSTD_ldm_makeEntryAndInsertByTag() 207 static U64 ZSTD_ldm_fillLdmHashTable(ldmState_t* state, in ZSTD_ldm_fillLdmHashTable() 208 U64 lastHash, const BYTE* lastHashed, in ZSTD_ldm_fillLdmHashTable() 212 U64 rollingHash = lastHash; in ZSTD_ldm_fillLdmHashTable() 233 U64 startingHash = ZSTD_rollingHash_compute(ip, params->minMatchLength); in ZSTD_ldm_fillHashTable() 263 U64 const hashPower = ldmState->hashPower; in ZSTD_ldm_generateSequences_internal() 285 U64 rollingHash = 0; in ZSTD_ldm_generateSequences_internal()
|
/freebsd/sys/dev/mpi3mr/mpi/ |
H A D | mpi30_transport.h | 125 U64 IOCInformation; /* 0x00 */ 133 U64 AdminRequestQueueAddress; /* 0x28 */ 134 U64 AdminReplyQueueAddress; /* 0x30 */ 150 U64 HCBAddress; /* 0x1C30 */ 156 U64 DiagRWData; /* 0x1C50 */ 157 U64 DiagRWAddress; /* 0x1C58 */ 376 U64 ReplyFrameAddress; /* 0x00 */ 459 U64 Address; /* 0x00 */ 475 U64 Reserved00; /* 0x00 */
|
H A D | mpi30_tool.h | 310 U64 Phys; /* 0x10 */ 328 U64 TestedPhys; /* 0x10 */ 329 U64 FailedPhys; /* 0x18 */ 354 U64 Address; /* 0x10 */ 441 U64 Context; /* 0x10 */ 469 U64 Context; /* 0x10 */
|
H A D | mpi30_ioc.h | 62 U64 TimeStamp; /* 0x10 */ 68 U64 ReplyFreeQueueAddress; /* 0x20 */ 72 U64 SenseBufferFreeQueueAddress; /* 0x30 */ 73 U64 DriverInformationAddress; /* 0x38 */ 302 U64 BaseAddress; /* 0x18 */ 350 U64 BaseAddress; /* 0x18 */ 599 U64 WWID; /* 0x08 */ 788 U64 TimeStamp; /* 0x00 */ 822 U64 SASAddress; /* 0x08 */ 929 U64 Timestamp; /* 0x00 */ [all …]
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress_internal.h | 710 _BitScanForward64(&r, (U64)val); in ZSTD_NbCommonBytes() 718 return (__builtin_ctzll((U64)val) >> 3); in ZSTD_NbCommonBytes() 728 return DeBruijnBytePos[((U64)((val & -(long long)val) * 0x0218A392CDABBD3FULL)) >> 58]; in ZSTD_NbCommonBytes() 758 _BitScanReverse64(&r, (U64)val); in ZSTD_NbCommonBytes() 849 static const U64 prime5bytes = 889523592379ULL; 850 static size_t ZSTD_hash5(U64 u, U32 h) { return (size_t)(((u << (64-40)) * prime5bytes) >> (64-h))… in ZSTD_hash5() 853 static const U64 prime6bytes = 227718039650203ULL; 854 static size_t ZSTD_hash6(U64 u, U32 h) { return (size_t)(((u << (64-48)) * prime6bytes) >> (64-h))… in ZSTD_hash6() 857 static const U64 prime7bytes = 58295818150454627ULL; 858 static size_t ZSTD_hash7(U64 u, U32 h) { return (size_t)(((u << (64-56)) * prime7bytes) >> (64-h))… in ZSTD_hash7() [all …]
|
H A D | fse_compress.c | 120 { U64 const add = 0x0101010101010101ull; in FSE_buildCTable_wksp() 122 U64 sv = 0; in FSE_buildCTable_wksp() 454 { U64 const vStepLog = 62 - tableLog; in FSE_normalizeM2() 455 U64 const mid = (1ULL << (vStepLog-1)) - 1; in FSE_normalizeM2() 456 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2() 457 U64 tmpTotal = mid; in FSE_normalizeM2() 460 U64 const end = tmpTotal + (count[s] * rStep); in FSE_normalizeM2() 485 U64 const scale = 62 - tableLog; in FSE_normalizeCount() 486 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount() 487 U64 const vStep = 1ULL<<(scale-20); in FSE_normalizeCount() [all …]
|
/freebsd/sys/contrib/zstd/programs/ |
H A D | util.h | 156 U64 UTIL_getFileSizeStat(const stat_t* statbuf); 178 #define UTIL_FILESIZE_UNKNOWN ((U64)(-1)) 179 U64 UTIL_getFileSize(const char* infilename); 180 U64 UTIL_getTotalFileSize(const char* const * fileNamesTable, unsigned nbFiles); 197 UTIL_HumanReadableSize_t UTIL_makeHumanReadableSize(U64 size);
|
H A D | benchzstd.c | 332 U64 totalDSize64 = 0; in BMK_benchMemAdvancedNoAlloc() 335 U64 const fSize64 = ZSTD_findDecompressedSize(srcPtr, fileSizes[fileNb]); in BMK_benchMemAdvancedNoAlloc() 341 assert((U64)decodedSize == totalDSize64); /* check overflow */ in BMK_benchMemAdvancedNoAlloc() 391 { U64 const crcOrig = (adv->mode == BMK_decodeOnly) ? 0 : XXH64(srcBuffer, srcSize, 0); in BMK_benchMemAdvancedNoAlloc() 452 … newResult.cSpeed = (U64)((double)srcSize * TIMELOOP_NANOSEC / cResult.nanoSecPerRun); in BMK_benchMemAdvancedNoAlloc() 477 … U64 const newDSpeed = (U64)((double)srcSize * TIMELOOP_NANOSEC / dResult.nanoSecPerRun); in BMK_benchMemAdvancedNoAlloc() 497 U64 const crcCheck = XXH64(resultBuffer, srcSize, 0); in BMK_benchMemAdvancedNoAlloc() 727 static size_t BMK_findMaxMem(U64 requiredMem) in BMK_findMaxMem() 756 U64 fileSize = UTIL_getFileSize(fileNamesTable[n]); /* last file may be shortened */ in BMK_loadFiles() 796 U64 const totalSizeToLoad = UTIL_getTotalFileSize(fileNamesTable, nbFiles); in BMK_benchFilesAdvanced() [all …]
|
/freebsd/sys/dev/mps/mpi/ |
H A D | mpi2_cnfg.h | 588 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/isci/ |
H A D | environment.h | 57 typedef uint64_t U64; typedef 66 typedef U64 SATI_LBA; 72 ((physical_address) = ((U64)(address_upper))<<32 | (address_lower))
|
/freebsd/sys/dev/isci/scil/ |
H A D | sci_base_memory_descriptor_list_decorator.c | 100 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 D | mpi2_cnfg.h | 778 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 D | mpi2_ioc.h | 250 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 D | lxutil.c | 647 *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()
|
/freebsd/sys/contrib/zstd/zlibWrapper/examples/ |
H A D | zwrapbench.c | 200 { U64 fastestC = (U64)(-1LL), fastestD = (U64)(-1LL); in BMK_benchMem() 201 U64 const crcOrig = XXH64(srcBuffer, srcSize, 0); in BMK_benchMem() 203 U64 const maxTime = (g_nbIterations * TIMELOOP_MICROSEC) + 100; in BMK_benchMem() 204 U64 totalCTime=0, totalDTime=0; in BMK_benchMem() 216 U64 clockLoop = g_nbIterations ? TIMELOOP_MICROSEC : 1; in BMK_benchMem() 379 { U64 const clockSpan = UTIL_clockSpanMicro(clockStart); in BMK_benchMem() 521 { U64 const clockSpan = UTIL_clockSpanMicro(clockStart); in BMK_benchMem() 534 { U64 const crcCheck = XXH64(resultBuffer, srcSize, 0); in BMK_benchMem() 581 static size_t BMK_findMaxMem(U64 requiredMem) in BMK_findMaxMem() 700 U64 fileSize = UTIL_getFileSize(fileNamesTable[n]); in BMK_loadFiles() [all …]
|