search for: powerof2

Displaying 5 results from an estimated 5 matches for "powerof2".

Did you mean: poweroff
2005 Dec 06
1
extend.series not zero padding
...39;"reflection"', '"zero"', '"mean"', and '"reflection.inverse"'." c<-cbind(0:60, 60:0) # setup a series, length will be 61 > length(c) [1] 122 >dew<-extend.series(c,method="zero",length="powerof2", j=log(length(c),2)%/%1) >Error in extend.series(c, method = "zero", length = "powerof2", j = log(length(c), : Invalid argument value for 'method' Other methods work great, such as method="mean". > dew<-extend.series(c,method="me...
2015 Mar 25
2
[LLVMdev] LLD: representation of a power of two value
.... Because I always think alignments in my > mind in terms of 1, 2, 4, 8, ..., instead of 2^1, 2^2, 2^3, ..., I'd like > to propose to always use real values. > Can you give some examples? > > The DefinedAtom class has struct: > > struct Alignment { > uint16_t powerOf2; > uint16_t modulus; > }; > > That use seems clear. But, yes, if there is “int alignment” somewhere, > that is ambiguous. > At least in ELF, alignment values are represented not by exponents but by just numbers in files, so we convert them back and force. "Alig...
2015 Mar 25
2
[LLVMdev] LLD: representation of a power of two value
...ms of 1, 2, 4, 8, ..., instead of 2^1, 2^2, 2^3, ..., I'd like >>> to propose to always use real values. >>> Can you give some examples? >>> >>> The DefinedAtom class has struct: >>> >>> struct Alignment { >>> uint16_t powerOf2; >>> uint16_t modulus; >>> }; >>> >>> That use seems clear. But, yes, if there is “int alignment” somewhere, >>> that is ambiguous. >>> >>> At least in ELF, alignment values are represented not by exponents but >>...
2015 Mar 26
2
[LLVMdev] LLD: representation of a power of two value
I submitted a series of patches to convert all uses of log2 values to non-log2 values (That was harder than I thought because the types of the two are the same. They only different in meaning. So it was not easy to distinguish them. I split up patches so that anyone can verify correctness of the conversion that I've done.) >From now on, please always use non-log2 alignment values
2015 Mar 25
7
[LLVMdev] LLD: representation of a power of two value
It's not a big deal, but it always annoyed me a bit when I hit it, so I'll bring it up here. LLD represents an alignment X as log2(X) in some places and just X in other places. It's a bit confusing. Because I always think alignments in my mind in terms of 1, 2, 4, 8, ..., instead of 2^1, 2^2, 2^3, ..., I'd like to propose to always use real values. Any objections? --------------