File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,7 @@ extern {
553
553
pub fn gcc_jit_type_dyncast_array ( typ : * mut gcc_jit_type ) -> * mut gcc_jit_type ;
554
554
pub fn gcc_jit_type_is_bool ( typ : * mut gcc_jit_type ) -> c_int ;
555
555
pub fn gcc_jit_type_is_integral ( typ : * mut gcc_jit_type ) -> c_int ;
556
+ pub fn gcc_jit_type_is_floating_point ( typ : * mut gcc_jit_type ) -> c_int ;
556
557
pub fn gcc_jit_type_unqualified ( typ : * mut gcc_jit_type ) -> * mut gcc_jit_type ;
557
558
pub fn gcc_jit_type_is_pointer ( typ : * mut gcc_jit_type ) -> * mut gcc_jit_type ;
558
559
pub fn gcc_jit_type_dyncast_function_ptr_type ( typ : * mut gcc_jit_type ) -> * mut gcc_jit_function_type ;
Original file line number Diff line number Diff line change @@ -172,6 +172,12 @@ impl<'ctx> Type<'ctx> {
172
172
}
173
173
}
174
174
175
+ pub fn is_floating_point ( self ) -> bool {
176
+ unsafe {
177
+ gccjit_sys:: gcc_jit_type_is_floating_point ( self . ptr ) != 0
178
+ }
179
+ }
180
+
175
181
pub fn dyncast_vector ( self ) -> Option < VectorType < ' ctx > > {
176
182
unsafe {
177
183
let vector_type = gccjit_sys:: gcc_jit_type_dyncast_vector ( self . ptr ) ;
You can’t perform that action at this time.
0 commit comments