Changeset 1c5c96d in mainline


Ignore:
Timestamp:
2017-10-11T20:35:01Z (7 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d29ae35
Parents:
b08e98ba
Message:

Unify offset ranges in update_damaged_region.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/visualizer.c

    rb08e98ba r1c5c96d  
    3333 */
    3434
     35#include <assert.h>
    3536#include <errno.h>
    3637#include <as.h>
     
    175176        sysarg_t x_offset, sysarg_t y_offset)
    176177{
    177 #ifdef __32_BITS__
     178        assert(x_offset <= UINT16_MAX);
     179        assert(y_offset <= UINT16_MAX);
     180
    178181        sysarg_t offsets = ((x_offset << 16) | (y_offset & 0x0000ffff));
    179 #else
    180         sysarg_t offsets = ((x_offset << 32) | (y_offset & 0xffffffff));
    181 #endif
    182182
    183183        async_exch_t *exch = async_exchange_begin(sess);
  • uspace/lib/graph/graph.c

    rb08e98ba r1c5c96d  
    469469static void vs_update_damaged_region(visualizer_t *vs, ipc_callid_t iid, ipc_call_t *icall)
    470470{
    471 #ifdef __32_BITS__
    472471        sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 16);
    473472        sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0x0000ffff);
    474 #else
    475         sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 32);
    476         sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0xffffffff);
    477 #endif
    478473       
    479474        int rc = vs->ops.handle_damage(vs,
Note: See TracChangeset for help on using the changeset viewer.