This library function, isnan (version a) tests IEEE754 numbers for the presence of a nan. The function returns a 1 if the number being tested is a nan, and returns 0 if it is a normal number.
testnan.c
isnan.asm
r.sh