Menu

#273 Missing functions for floats

closed-fixed
z80 port (189)
5
2002-03-02
2002-01-07
No

I've been trying to use the Cephes floating point lib,
(http://www.netlib.org/cephes/) but get the following
errors:

?ASlink-Warning-Undefined Global ___fs2ulong_rrx_s
referenced by module sinf
?ASlink-Warning-Undefined Global ___ulong2fs_rrx_s
referenced by module sinf
?ASlink-Warning-Undefined Global ___fs2sint_rrx_s
referenced by module sinf
?ASlink-Warning-Undefined Global ___sint2fs_rrx_s
referenced by module sinf

Sample code:
extern float z1(void);
float fun( void )
{
unsigned long i;
float f;
i=5.5 * z1();
f=i;
if (i & 1)
f += 1.0;
return f;
}

Tested with Jan. 07 snapshot, MingW, sdcc -mz80

Discussion

  • Johan Knol

    Johan Knol - 2002-01-13

    Logged In: YES
    user_id=63512

    Elementary fp support has been added recently by Jesus. I
    don't think they are build by default for the z80 port.
    Could you have a look?

     
  • Johan Knol

    Johan Knol - 2002-01-13
    • labels: --> z80 port
    • assigned_to: nobody --> michaelh
     
  • Michael Hope

    Michael Hope - 2002-03-02
    • status: open --> closed-fixed
     
  • Michael Hope

    Michael Hope - 2002-03-02

    Logged In: YES
    user_id=373

    Fixed. The name was getting accidently mangled.

     

Log in to post a comment.