mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
86 lines
2.9 KiB
C
86 lines
2.9 KiB
C
|
#ifndef __CASTS_H__
|
||
|
#define __CASTS_H__
|
||
|
|
||
|
#include "cBackend.h"
|
||
|
#include <stdio.h>
|
||
|
|
||
|
Value *cast_i32_to_Bits8(Value *);
|
||
|
Value *cast_i32_to_Bits16(Value *);
|
||
|
Value *cast_i32_to_Bits32(Value *);
|
||
|
Value *cast_i32_to_Bits64(Value *);
|
||
|
Value *cast_i32_to_i64(Value *);
|
||
|
Value *cast_i32_to_double(Value *);
|
||
|
Value *cast_i32_to_char(Value *);
|
||
|
Value *cast_i32_to_string(Value *);
|
||
|
|
||
|
Value *cast_i64_to_Bits8(Value *);
|
||
|
Value *cast_i64_to_Bits16(Value *);
|
||
|
Value *cast_i64_to_Bits32(Value *);
|
||
|
Value *cast_i64_to_Bits64(Value *);
|
||
|
Value *cast_i64_to_i32(Value *);
|
||
|
Value *cast_i64_to_double(Value *);
|
||
|
Value *cast_i64_to_char(Value *);
|
||
|
Value *cast_i64_to_string(Value *);
|
||
|
|
||
|
Value *cast_double_to_Bits8(Value *);
|
||
|
Value *cast_double_to_Bits16(Value *);
|
||
|
Value *cast_double_to_Bits32(Value *);
|
||
|
Value *cast_double_to_Bits64(Value *);
|
||
|
Value *cast_double_to_i32(Value *);
|
||
|
Value *cast_double_to_i64(Value *);
|
||
|
Value *cast_double_to_char(Value *);
|
||
|
Value *cast_double_to_string(Value *);
|
||
|
|
||
|
Value *cast_char_to_Bits8(Value *);
|
||
|
Value *cast_char_to_Bits16(Value *);
|
||
|
Value *cast_char_to_Bits32(Value *);
|
||
|
Value *cast_char_to_Bits64(Value *);
|
||
|
Value *cast_char_to_i32(Value *);
|
||
|
Value *cast_char_to_i64(Value *);
|
||
|
Value *cast_char_to_double(Value *);
|
||
|
Value *cast_char_to_string(Value *);
|
||
|
|
||
|
Value *cast_string_to_Bits8(Value *);
|
||
|
Value *cast_string_to_Bits16(Value *);
|
||
|
Value *cast_string_to_Bits32(Value *);
|
||
|
Value *cast_string_to_Bits64(Value *);
|
||
|
Value *cast_string_to_i32(Value *);
|
||
|
Value *cast_string_to_i64(Value *);
|
||
|
Value *cast_string_to_double(Value *);
|
||
|
Value *cast_string_to_char(Value *);
|
||
|
|
||
|
Value *cast_Bits8_to_Bits16(Value *input);
|
||
|
Value *cast_Bits8_to_Bits32(Value *input);
|
||
|
Value *cast_Bits8_to_Bits64(Value *input);
|
||
|
Value *cast_Bits8_to_i32(Value *input);
|
||
|
Value *cast_Bits8_to_i64(Value *input);
|
||
|
Value *cast_Bits8_to_double(Value *input);
|
||
|
Value *cast_Bits8_to_char(Value *input);
|
||
|
Value *cast_Bits8_to_string(Value *input);
|
||
|
Value *cast_Bits16_to_Bits8(Value *input);
|
||
|
Value *cast_Bits16_to_Bits32(Value *input);
|
||
|
Value *cast_Bits16_to_Bits64(Value *input);
|
||
|
Value *cast_Bits16_to_i32(Value *input);
|
||
|
Value *cast_Bits16_to_i64(Value *input);
|
||
|
Value *cast_Bits16_to_double(Value *input);
|
||
|
Value *cast_Bits16_to_char(Value *input);
|
||
|
Value *cast_Bits16_to_string(Value *input);
|
||
|
Value *cast_Bits32_to_Bits8(Value *input);
|
||
|
Value *cast_Bits32_to_Bits16(Value *input);
|
||
|
Value *cast_Bits32_to_Bits64(Value *input);
|
||
|
Value *cast_Bits32_to_i32(Value *input);
|
||
|
Value *cast_Bits32_to_i64(Value *input);
|
||
|
Value *cast_Bits32_to_double(Value *input);
|
||
|
Value *cast_Bits32_to_char(Value *input);
|
||
|
Value *cast_Bits32_to_string(Value *input);
|
||
|
Value *cast_Bits64_to_Bits8(Value *input);
|
||
|
Value *cast_Bits64_to_Bits16(Value *input);
|
||
|
Value *cast_Bits64_to_Bits32(Value *input);
|
||
|
Value *cast_Bits64_to_i32(Value *input);
|
||
|
Value *cast_Bits64_to_i64(Value *input);
|
||
|
Value *cast_Bits64_to_double(Value *input);
|
||
|
Value *cast_Bits64_to_char(Value *input);
|
||
|
Value *cast_Bits64_to_string(Value *input);
|
||
|
|
||
|
#endif
|