Merging from HSA libm