project_files/hwc/rtl/system.c
changeset 14168 5c6f947c342c
parent 14159 0aeea29ef890
child 14189 b15014125f67
equal deleted inserted replaced
14167:48b9da0178eb 14168:5c6f947c342c
   341 
   341 
   342 void fpcrtl_new__vars(void **p, int size) {
   342 void fpcrtl_new__vars(void **p, int size) {
   343     *p = malloc(size);
   343     *p = malloc(size);
   344 }
   344 }
   345 
   345 
   346 Integer fpcrtl_trunc(extended n) {
   346 Int64 fpcrtl_trunc(extended n) {
   347     return (int) n;
   347     return (Int64) n;
   348 }
   348 }
   349 
   349 
   350 Integer fpcrtl_ceil(extended n) {
   350 Integer fpcrtl_ceil(extended n) {
   351     return (int) (ceil(n));
   351     return (Integer) (ceil(n));
   352 }
   352 }
   353 
   353 
   354 LongInt str_to_int(char *src)
   354 LongInt str_to_int(char *src)
   355 {
   355 {
   356     int i;
   356     int i;