mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-27 05:34:40 +03:00
a76a1322eb
Written by Volkmar Frinken (@vfrinken). This is intended as a lightweight (i.e. minimal dependencies) code generator that can be ported to multiple platforms, especially those with memory constraints. It shouldn't be expected to be anywhere near as fast as the Scheme back end, for lots of reasons. The main goal is portability.
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
|