Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::SETMASK Macro
C++
#define SETMASK(v,n,val) (((MASKSET_READTYPE*)((v)+((n)*(v##_mask_size))/MASKTYPEBITS((v)[0])))[0] =    \
( ((MASKSET_READTYPE*)((v)+((n)*(v##_mask_size))/MASKTYPEBITS(_8)))[0]                                 \
 & (~(MASK_MASK(n,v##_mask_size))) )                                                                           \
    | MASK_MASK_VAL(n,v##_mask_size,val) )

set a field index to a value

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!