[GyroCal/OTC-Gyro] Algorithm Sync for MR1

This CL includes code maintanence and clean-up for MR1.
Changes are synced from Google3.

Included:
  - Moved helper macros from vec.h to separate file macros.h.
  - Addressed some reviewer comments ag/2595812.

Tip of G3 CL: 165657110
Bug: 64755461
Test: Built and verified on hardware.

Change-Id: Ic19e54d98d760ef0173eebe452dd713ebe45a35a
9 files changed