Properly store, pass and restore floating point result. Bug: 22047833 (cherry picked from commit 844fb67a) Change-Id: If5d9efbe63334c9b6353f76ce6e4fe519602482a