Sure. See the attached program.
Here's the correct output which the C implementation generates:
classification(1.0): normal
signbit(1.0): 0
classification(0.0): zero
signbit(0.0): 0
isnan(0.0): 0
classification(-0.0): zero
signbit(-0.0): 1
classification(-0.0/10): zero
signbit(-0.0/10): 1
classification(1.0/0.0): Inf
signbit(1.0/0.0): 0
isnan(1.0/0.0): 0
classification(-1.0/0.0): Inf
signbit(-1.0/0.0): 1
classification(0.0/0.0): NaN
isnan(0.0/0.0): 1
classification(DBL_MAX): normal
classification(DBL_MAX*2): Inf
classification(DBL_MIN): normal
classification(DBL_MIN/2): sub-normal
classification(FLT_MIN/2): sub-normal
classification(FLT_MIN/2.0): normal
On Friday, November 6, 2015 5:34 PM, Sergey Korshunoff <address@hidden> wrote:
Hi avih
Can you share a test programs? I'm interested in asm code problem.
Meanwiile you can add a C version of the code to the mob ...