Project

General

Profile

Bug #11199

libm floating point exception handler shifts entire values away on amd64

Added by Rich Lowe 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

__fex_i386 does this several times:

#if defined(__amd64)
    op = uap->uc_mcontext.fpregs.fp_reg_set.fpchip_state.fop >> 16;

fop here is a uint16_t, that shift loses us everything.

Also available in: Atom PDF