This is an archive of the discontinued LLVM Phabricator instance.

[Support][Endian] Overload += and -=
ClosedPublic

Authored by ruiu on Aug 28 2014, 11:48 AM.

Details

Summary

This patch is to overload operator+= and operator-= for {u}{little}{big}{8,16,32,64}_t.

Diff Detail

Event Timeline

ruiu updated this revision to Diff 13048.Aug 28 2014, 11:48 AM
ruiu retitled this revision from to [Support][Endian] Overload += and -=.
ruiu updated this object.
ruiu edited the test plan for this revision. (Show Details)
ruiu added a reviewer: Bigcheese.
ruiu added a subscriber: Unknown Object (MLST).
majnemer accepted this revision.Sep 11 2014, 3:59 PM
majnemer added a reviewer: majnemer.
majnemer added a subscriber: majnemer.

LGTM with tweaks.

include/llvm/Support/Endian.h
96

Move the & next to the operator keyword.

101

Ditto.

This revision is now accepted and ready to land.Sep 11 2014, 3:59 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r217637.