Project

General

Profile

« Previous | Next » 

Revision 3dacdcc2

Added by Pierre-Loïc Garoche over 7 years ago

Convertion operators

git-svn-id: https://cavale.enseeiht.fr/svn/lustrec/lustre_compiler/trunk@258 041b043f-8d7c-46b2-b46e-ef0dd855326e

View differences:

include/conv.c
1
int real_to_int (double in1) { return (int)in1; }
2

  
3
double int_to_real (int in1) { return (double)in1; }
include/conv.h
1
int real_to_int (double in1);
2

  
3
double int_to_real (int in1);
include/conv.lusi
1
function real_to_int (in1: real) returns (out: int) prototype C;
2
function int_to_real (in1: int) returns (out: real) prototype C;

Also available in: Unified diff