Searched refs:sum2 (Results 1 - 4 of 4) sorted by relevance
/darwin-on-arm/xnu/libkern/zlib/ |
H A D | adler32.c | 45 extern uLong adler32_vec(uLong adler, uLong sum2, const Bytef *buf, uInt len); 52 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} 99 unsigned long sum2; local 103 sum2 = (adler >> 16) & 0xffff; 111 sum2 += adler; 112 if (sum2 >= BASE) 113 sum2 -= BASE; 114 return adler | (sum2 << 16); 125 sum2 += adler; 129 MOD4(sum2); /* onl 188 unsigned long sum2; local [all...] |
/darwin-on-arm/xnu/libkern/zlib/intel/ |
H A D | adler32vec.s | 7 Given 2 unsigned 32-bit alder and sum2 (both pre-modulo by BASE=65521) and a sequence of input bytes x[0],...x[N-1]. 8 The adler-sum2 pair is updated according to 12 sum2 = (sum2+adler)%BASE; 15 To reduce/save the modulo operations, it can be shown that, if initial alder and sum2 are less than BASE(=65521), 16 adler and sum2 (in 32-bit representation), will never overflow for the next NMAX=5552 bytes. This simplifies the 22 sum2+=adler; 25 sum2%=BASE; 32 sum2+=adler; 35 This subtask turns out to be very vecterizable. Suppose we perform the adler/sum2 updat [all...] |
/darwin-on-arm/xnu/libkern/zlib/arm/ |
H A D | adler32vec.s | 8 // uLong adler32_vec(unsigned int adler, unsigned int sum2, const Bytef* buf, int len) { 18 // MOD(sum2); 28 // sum2 += adler; 31 // MOD(sum2); 33 // return adler | (sum2 << 16); /* return recombined sums */ 39 given initial unsigned int sum2 and adler, and a new set of 16 input bytes (x[0:15]), it can be shown that 40 sum2 += (16*adler + 16*x[0] + 15*x[1] + ... + 1*x[15]); 45 2. sum2 += (adler<<4); 48 5. parallel add (with once expansion to 32-bit) (q9,q8) and (q11,q10) all the way to accumulate to adler and sum2 52 2. sum2 [all...] |
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IOHibernateIO.cpp | 2064 uint32_t restore1Sum, sum, sum1, sum2; local 2095 restore1Sum = sum1 = sum2 = 0; 2453 sum2 += sum; 2560 header->image2Sum = sum2; 2615 HIBLOG("\nimage %qd (%lld%%), uncompressed %qd (%d), compressed %qd (%d%%), sum1 %x, sum2 %x\n", 2619 sum1, sum2); 2926 HIBLOG("hibernate_machine_init pagesDone %d sum2 %x, time: %qd ms, ",
|
Completed in 162 milliseconds