Skip to content

Commit

Permalink
NFC: Clang Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Bollay committed Feb 28, 2018
1 parent c7ddaa0 commit d83c060
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
12 changes: 8 additions & 4 deletions qregister.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ class CoherentUnit {
* Add signed integer of "length" bits in "inStart" to signed integer of "length" bits in "inOutStart," and store
* result in "inOutStart." Set overflow bit when input to output wraps past minimum or maximum integer.
*/
void ADDS(const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt overflowIndex);
void ADDS(
const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt overflowIndex);

/**
* Add integer of "length" bits in "inStart" to integer of "length" bits in "inOutStart," and store result in
Expand All @@ -310,7 +311,8 @@ class CoherentUnit {
* Add BCD number of "length" bits in "inStart" to BCD number of "length" bits in "inOutStart," and store result in
* "inOutStart," with carry in/out.
*/
void ADDBCDC(const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt carryIndex);
void ADDBCDC(
const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt carryIndex);

/**
* Subtract integer of "length" bits in "toSub" from integer of "length" bits in "inOutStart," and store result in
Expand All @@ -328,7 +330,8 @@ class CoherentUnit {
* Subtract BCD number of "length" bits in "inStart" from BCD number of "length" bits in "inOutStart," and store
* result in "inOutStart," with carry in/out.
*/
void SUBBCDC(const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt carryIndex);
void SUBBCDC(
const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt carryIndex);

/**
* Subtract integer of "length" bits in "toSub" from integer of "length" bits in "inOutStart," and store result in
Expand All @@ -340,7 +343,8 @@ class CoherentUnit {
* Subtract signed integer of "length" bits in "inStart" from signed integer of "length" bits in "inOutStart," and
* store result in "inOutStart." Set overflow bit when input to output wraps past minimum or maximum integer.
*/
void SUBS(const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt overflowIndex);
void SUBS(
const bitLenInt inOutStart, const bitLenInt inStart, const bitLenInt length, const bitLenInt overflowIndex);

/**
*Subtract integer of "length" bits in "inStart" from integer of "length" bits in "inOutStart," and store result
Expand Down
12 changes: 6 additions & 6 deletions qregister_opencl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@
namespace Qrack {

/* Modified constructors with the addition of InitOCL(). */
CoherentUnitOCL::CoherentUnitOCL(bitLenInt qBitCount) :
CoherentUnit(qBitCount)
CoherentUnitOCL::CoherentUnitOCL(bitLenInt qBitCount)
: CoherentUnit(qBitCount)
{
InitOCL();
}

CoherentUnitOCL::CoherentUnitOCL(bitLenInt qBitCount, bitCapInt initState) :
CoherentUnit(qBitCount, initState)
CoherentUnitOCL::CoherentUnitOCL(bitLenInt qBitCount, bitCapInt initState)
: CoherentUnit(qBitCount, initState)
{
InitOCL();
}

CoherentUnitOCL::CoherentUnitOCL(const CoherentUnitOCL& pqs) :
CoherentUnit(pqs)
CoherentUnitOCL::CoherentUnitOCL(const CoherentUnitOCL& pqs)
: CoherentUnit(pqs)
{
InitOCL();
}
Expand Down
1 change: 0 additions & 1 deletion qregister_opencl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ class CoherentUnitOCL : public CoherentUnit {
virtual void Apply2x2(bitCapInt offset1, bitCapInt offset2, const Complex16* mtrx, const bitLenInt bitCount,
const bitCapInt* qPowersSorted, bool doApplyNorm, bool doCalcNorm);
};

}

0 comments on commit d83c060

Please sign in to comment.