Redo previous so as to not break non-arm MKDTRACE=yes builds.

This commit is contained in:
riz 2015-10-01 20:51:19 +00:00
parent 41784a61b4
commit f2d2d6c3e9
1 changed files with 3 additions and 1 deletions

View File

@ -301,6 +301,9 @@ pfprint_fp(dtrace_hdl_t *dtp, FILE *fp, const char *format,
const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
{
double n = (double)normal;
#if !defined(__arm__) && !defined(__powerpc__) && !defined(__mips__)
long double ldn = (long double)normal;
#endif
switch (size) {
case sizeof (float):
@ -311,7 +314,6 @@ pfprint_fp(dtrace_hdl_t *dtp, FILE *fp, const char *format,
*((double *)addr) / n));
#if !defined(__arm__) && !defined(__powerpc__) && !defined(__mips__)
case sizeof (long double):
long double ldn = (long double)normal;
return (dt_printf(dtp, fp, format,
*((long double *)addr) / ldn));
#endif