Overview
Comment: | Add of_{point,dimension,rectangle}(). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6f357e67bdec55c9b97d5182156489f7 |
User & Date: | js on 2011-06-13 23:52:16 |
Other Links: | manifest | tags |
Context
2011-06-13
| ||
23:53 | Add of_range(). check-in: a9c38eb137 user: js tags: trunk | |
23:52 | Add of_{point,dimension,rectangle}(). check-in: 6f357e67bd user: js tags: trunk | |
23:47 | Add of_{point,dimension,rectangle}_t. check-in: f86ac97de4 user: js tags: trunk | |
Changes
Modified src/macros.h from [3b292be428] to [8e57c109c4].
︙ | ︙ | |||
313 314 315 316 317 318 319 | OF_HASH_ADD(hash, (int64Copy >> 40) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 32) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 24) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 16) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 8) & 0xFF); \ OF_HASH_ADD(hash, int64Copy & 0xFF); \ } | > > > > > > > > > > > > > > > > > > > > > > > > > > > | 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | OF_HASH_ADD(hash, (int64Copy >> 40) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 32) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 24) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 16) & 0xFF); \ OF_HASH_ADD(hash, (int64Copy >> 8) & 0xFF); \ OF_HASH_ADD(hash, int64Copy & 0xFF); \ } static OF_INLINE of_point_t of_point(int x, int y) { of_point_t point = { x, y }; return point; } static OF_INLINE of_dimension_t of_dimension(int width, int height) { of_dimension_t dimension = { width, height }; return dimension; } static OF_INLINE of_rectangle_t of_rectangle(int x, int y, int width, int height) { of_rectangle_t rectangle = { of_point(x, y), of_dimension(width, height) }; return rectangle; } |