accls/AES/AES-Synth/aes-rtl-uinst/verilatorInclude/verilated.h
// EMIT_RULE: VL_SHIFTL:  oclean=lclean; rclean==clean;
// Important: Unlike most other funcs, the shift might well be a computed
// expression.  Thus consider this when optimizing.  (And perhaps have 2 funcs?)
oclean=lclean; rclean==clean;
Important: Unlike most other funcs, the shift might well be a computed
expression.  Thus consider this when optimizing.  (And perhaps have 2 funcs?)
oclean = lclean ; rclean == clean ; Important : Unlike most other funcs the shift might well be a computed expression . Thus consider this when optimizing . ( And perhaps have 2 funcs? )
static inline WDataOutP VL_SHIFTL_WWI(int obits,int,int,WDataOutP owp,WDataInP lwp, IData rd) {
    int word_shift = VL_BITWORD_I(rd);
    int bit_shift = VL_BITBIT_I(rd);
    if (rd >= (IData)obits) {  
	for (int i=0; i < VL_WORDS_I(obits); i++) owp[i] = 0;
    } else if (bit_shift==0) {  
	for (int i=0; i < word_shift; i++) owp[i] = 0;
	for (int i=word_shift; i < VL_WORDS_I(obits); i++) owp[i] = lwp[i-word_shift];
    } else {
	for (int i=0; i < VL_WORDS_I(obits); i++) owp[i] = 0;
	_VL_INSERT_WW(obits,owp,lwp,obits-1,rd);
    }
    return(owp);
}
static inline WDataOutP VL_SHIFTL_WWI ( int obits , int , int , WDataOutP owp , WDataInP lwp , IData rd ) { int word_shift = VL_BITWORD_I ( rd ) ; int bit_shift = VL_BITBIT_I ( rd ) ; if ( rd >= ( IData ) obits ) { for ( int i = 0 ; i < VL_WORDS_I ( obits ) ; i ++ ) owp [ i ] = 0 ; } else if ( bit_shift == 0 ) { for ( int i = 0 ; i < word_shift ; i ++ ) owp [ i ] = 0 ; for ( int i = word_shift ; i < VL_WORDS_I ( obits ) ; i ++ ) owp [ i ] = lwp [ i - word_shift ] ; } else { for ( int i = 0 ; i < VL_WORDS_I ( obits ) ; i ++ ) owp [ i ] = 0 ; _VL_INSERT_WW ( obits , owp , lwp , obits - 1 , rd ) ; } return ( owp ) ; }
EMIT_RULE: VL_SHIFTL:  oclean=lclean; rclean==clean;
Important: Unlike most other funcs, the shift might well be a computed
expression.
EMIT_RULE : VL_SHIFTL : oclean = lclean ; rclean == clean ; Important : Unlike most other funcs the shift might well be a computed expression .
// rd may be huge with MSB set // Aligned word shift (<<0,<<32,<<64 etc)