Overview
Comment: | Move some macros to OFMacros.h. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
fa2d377c18ced5f1653015d962a8ed6f |
User & Date: | js on 2008-11-01 17:08:59 |
Other Links: | manifest | tags |
Context
2008-11-01
| ||
17:56 | Make some things static so they don't get exported. check-in: bb17c57aa1 user: js tags: trunk | |
17:08 | Move some macros to OFMacros.h. check-in: fa2d377c18 user: js tags: trunk | |
16:44 | Fix missing include. check-in: 9a3c338399 user: js tags: trunk | |
Changes
Modified src/OFHashes.m from [ae5d03b1b4] to [ee4f52853e].
︙ | |||
11 12 13 14 15 16 17 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | - + - - - - - - - - - - - - - - - - - - | #import "config.h" #import <string.h> #import <stdint.h> #import "OFHashes.h" |
︙ | |||
179 180 181 182 183 184 185 | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | - + - + | if (size < t) { memcpy(p, buffer, size); return self; } memcpy(p, buffer, t); |
︙ | |||
227 228 229 230 231 232 233 | 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | - + - + - + - - + + - + - - + + - - + + - - - - - + + + + + - - + + | /* Bytes of padding needed to make 64 bytes */ count = 64 - 1 - count; /* Pad out to 56 mod 64 */ if (count < 8) { /* Two lots of padding: Pad the first block to 64 bytes */ memset(p, 0, count); |
︙ |
Modified src/OFMacros.h from [bcf6a12bee] to [de6e95837e].
︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | + + + + + + + + + + + + + + + + + + + + | * the packaging of this file. */ #define OF_NOT_IMPLEMENTED(ret) \ [[OFNotImplementedException newWithObject: self \ andSelector: _cmd] raise]; \ return ret; #ifdef OF_BIG_ENDIAN inline void OF_BSWAP_V(uint8_t *buf, size_t len) { uint32_t t; while (len--) { t = (uint32_t)((uint32_t)buf[3] << 8 | buf[2]) << 16 | ((uint32_t)buf[1] << 8 | buf[0]); *(uint32_t*)buf = t; buf += sizeof(t); } } #else #define OF_BSWAP_V(buf, len) #endif #define OF_ROL(val, bits) \ (((val) << (bits)) | ((val) >> (32 - (bits)))) |