@@ -801,7 +801,8 @@ def StdC : StandardSpec<"stdc"> {
801
801
Macro<"stdc_count_zeros">,
802
802
Macro<"stdc_count_ones">,
803
803
Macro<"stdc_has_single_bit">,
804
- Macro<"std_bit_width">
804
+ Macro<"std_bit_width">,
805
+ Macro<"std_bit_floor">
805
806
], // Macros
806
807
[], // Types
807
808
[], // Enumerations
@@ -860,7 +861,12 @@ def StdC : StandardSpec<"stdc"> {
860
861
FunctionSpec<"stdc_bit_width_us", RetValSpec<UnsignedIntType>, [ArgSpec<UnsignedShortType>]>,
861
862
FunctionSpec<"stdc_bit_width_ui", RetValSpec<UnsignedIntType>, [ArgSpec<UnsignedIntType>]>,
862
863
FunctionSpec<"stdc_bit_width_ul", RetValSpec<UnsignedIntType>, [ArgSpec<UnsignedLongType>]>,
863
- FunctionSpec<"stdc_bit_width_ull", RetValSpec<UnsignedIntType>, [ArgSpec<UnsignedLongLongType>]>
864
+ FunctionSpec<"stdc_bit_width_ull", RetValSpec<UnsignedIntType>, [ArgSpec<UnsignedLongLongType>]>,
865
+ FunctionSpec<"stdc_bit_floor_uc", RetValSpec<UnsignedCharType>, [ArgSpec<UnsignedCharType>]>,
866
+ FunctionSpec<"stdc_bit_floor_us", RetValSpec<UnsignedShortType>, [ArgSpec<UnsignedShortType>]>,
867
+ FunctionSpec<"stdc_bit_floor_ui", RetValSpec<UnsignedIntType>, [ArgSpec<UnsignedIntType>]>,
868
+ FunctionSpec<"stdc_bit_floor_ul", RetValSpec<UnsignedLongType>, [ArgSpec<UnsignedLongType>]>,
869
+ FunctionSpec<"stdc_bit_floor_ull", RetValSpec<UnsignedLongLongType>, [ArgSpec<UnsignedLongLongType>]>
864
870
] // Functions
865
871
>;
866
872
0 commit comments