Changeset 1c5c96d in mainline
- Timestamp:
- 2017-10-11T20:35:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d29ae35
- Parents:
- b08e98ba
- Location:
- uspace/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/visualizer.c
rb08e98ba r1c5c96d 33 33 */ 34 34 35 #include <assert.h> 35 36 #include <errno.h> 36 37 #include <as.h> … … 175 176 sysarg_t x_offset, sysarg_t y_offset) 176 177 { 177 #ifdef __32_BITS__ 178 assert(x_offset <= UINT16_MAX); 179 assert(y_offset <= UINT16_MAX); 180 178 181 sysarg_t offsets = ((x_offset << 16) | (y_offset & 0x0000ffff)); 179 #else180 sysarg_t offsets = ((x_offset << 32) | (y_offset & 0xffffffff));181 #endif182 182 183 183 async_exch_t *exch = async_exchange_begin(sess); -
uspace/lib/graph/graph.c
rb08e98ba r1c5c96d 469 469 static void vs_update_damaged_region(visualizer_t *vs, ipc_callid_t iid, ipc_call_t *icall) 470 470 { 471 #ifdef __32_BITS__472 471 sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 16); 473 472 sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0x0000ffff); 474 #else475 sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 32);476 sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0xffffffff);477 #endif478 473 479 474 int rc = vs->ops.handle_damage(vs,
Note:
See TracChangeset
for help on using the changeset viewer.