static uint16_t roundToInt16(int64_t f){

	int r= (f + (1<<15))>>16;

	     if(r<-0x7FFF) return 0x8000;

	else if(r> 0x7FFF) return 0x7FFF;

	else               return r;

}

static uint16_t roundToInt16(int64_t f){

	int r= (f + (1<<15))>>16;

	     if(r<-0x7FFF) return 0x8000;

	else if(r> 0x7FFF) return 0x7FFF;

	else               return r;

}

	int r= (f + (1<<15))>>16; 	     if(r<-0x7FFF) return 0x8000; 	else if(r> 0x7FFF) return 0x7FFF; 	else               return r;
static uint16_t FUNC_0(int64_t f){

	int VAR_0= (f + (1<<15))>>16;

	     if(VAR_0<-0x7FFF) return 0x8000;

	else if(VAR_0> 0x7FFF) return 0x7FFF;

	else               return VAR_0;

}

static uint16_t FUNC_0(int64_t f){ int VAR_0= (f + (1<<15))>>16; if(VAR_0<-0x7FFF) return 0x8000; else if(VAR_0> 0x7FFF) return 0x7FFF; else               return VAR_0; }