search for: shiftcount

Displaying 9 results from an estimated 9 matches for "shiftcount".

Did you mean: hitcount
2012 May 11
2
[LLVMdev] [PATCH] OpenCL half support
...Tha 0xH format should be described in LangRef.html alongside 0xK<hex> and 0xM<hex> The code looks good though. lib/VMCore/AsmWriter.cpp The change updates Printing support for half data type, so it uses the new special 0xH<hex> form. Declaration of "int shiftcount" should be moved to smallest nesting possible, right after "if ( const ConstantFP ..." at line 710 (The code makes a lot more sense with a good comment on the definition of shiftcount. I prefer to add this comment: int shiftcount; // bit position, in the current word...
2012 May 17
0
[LLVMdev] [PATCH] OpenCL half support
Hi David, Many thanks for the comments! > Tha 0xH format should be described in LangRef.html alongside > 0xK<hex> and 0xM<hex> Done. > Declaration of "int shiftcount" should be moved to smallest nesting > possible, right after "if ( const ConstantFP ..." at line 710 > > (The code makes a lot more sense with a good comment on the > definition > of shiftcount. I prefer to add this comment: > int shiftcount; // bit...
2012 May 17
3
[LLVMdev] [PATCH] OpenCL half support
...> Subject: Re: [LLVMdev] [PATCH] OpenCL half support > > Hi David, > > Many thanks for the comments! > > > Tha 0xH format should be described in LangRef.html alongside > > 0xK<hex> and 0xM<hex> > Done. > > > Declaration of "int shiftcount" should be moved to smallest nesting > > possible, right after "if ( const ConstantFP ..." at line 710 > > > > (The code makes a lot more sense with a good comment on the > > definition > > of shiftcount. I prefer to add this comment: > >...
2007 Aug 14
1
[LLVMdev] Static functions for APInt
...utine; its contents need not be initialized and are + destroyed. LHS, REMAINDER and SCRATCH must be distinct. +*/ +int +APInt::tcDivide(integerPart *lhs, const integerPart *rhs, + integerPart *remainder, integerPart *srhs, + unsigned int parts) +{ + unsigned int n, shiftCount; + integerPart mask; + + assert(lhs != remainder && lhs != srhs && remainder != srhs); + + shiftCount = tcMSB(rhs, parts); + if (shiftCount == -1U) + return true; + + shiftCount = parts * integerPartWidth - shiftCount - 1; + n = shiftCount / integerPartWidth; + mask = (int...
2012 May 17
0
[LLVMdev] [PATCH] OpenCL half support
...f support > > > > Hi David, > > > > Many thanks for the comments! > > > > > Tha 0xH format should be described in LangRef.html alongside > > > 0xK<hex> and 0xM<hex> > > Done. > > > > > Declaration of "int shiftcount" should be moved to smallest > nesting > > > possible, right after "if ( const ConstantFP ..." at line 710 > > > > > > (The code makes a lot more sense with a good comment on the > > > definition > > > of shiftcount. I prefer...
2013 May 07
1
[LLVMdev] Why is there no ashl/lshl?
...lvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Tim Northover > In contrast, it's not quite clear what an arithmetic left-shift would > be. If you want to keep x << 1 == x*2 then the logical one already > does this. Only if the left-most (shiftcount + 1) bits are all-0 or all-1. I've used machines that distinguished logical and arithmetic left shift to detect when this condition fails (arith shift would trap). --paulr
2007 Aug 18
1
[LLVMdev] Soft floating point support
This patch supplies software IEEE floating point support. The comment from the patch reproduced below says all there is to say. This patch contains the prior "cleanup" patch; please don't apply that one. Please let me know of any bugs. It is tested reasonably well, but until I put together random tests it's hard to have 100% confidence. Neil. /* A self-contained host- and
2013 May 07
0
[LLVMdev] Why is there no ashl/lshl?
Hi, > There is a distinction between logical/arithmetic shift right, but why > not for shift left? The arithmetic right shift has the nice property that it preserves the fact that x >> 1 == x/2 for negative signed numbers (unlike the logical shift). Either because of this or because of other uses I can't think of right now almost all modern CPUs implement it in hardware, and
2013 May 07
3
[LLVMdev] Why is there no ashl/lshl?
There is a distinction between logical/arithmetic shift right, but why not for shift left? I'm also a bit confused by one example in the reference manual: <result> = lshr i8 -2, 1 ; yields {i8}:result = 0x7FFFFFFF Is this an error in the manual? The result is supposed to be an i8 yet a i32 is shown. -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --