Mercurial > hg > octave-lyh
diff libinterp/corefcn/pt-jit.h @ 17397:dbdff94bf977
Use std::numeric_limits for floating point bit widths
* bitfcns.cc (max_mantissa_value<T>): New utility function.
(Fbitshift): Use max_mantissa_value, std::numeric_limits, and sizeof.
(Fbitmax): Use max_mantissa_value. Cast output properly for class single.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Sun, 08 Sep 2013 12:16:44 -0400 |
parents | 68fc671a9339 |
children | 498b2dd1bd56 f9abc8e5fc2e |