Skip to content

Commit 63fe052

Browse files
committed
Add uint and int typedefs for arguments passed into fxbits(). Should come back to this later.
1 parent 5525a44 commit 63fe052

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

libc/include/llvm-libc-macros/stdfix-macros.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,19 @@
323323
#define ULACCUM_EPSILON 0x1.0p-32ULK
324324
#endif // ULACCUM_EPSILON
325325

326+
typedef signed char int_hr_t;
327+
typedef unsigned char uint_uhr_t;
328+
typedef signed short int int_r_t;
329+
typedef unsigned short int uint_ur_t;
330+
typedef signed int int_lr_t;
331+
typedef unsigned int uint_ulr_t;
332+
typedef signed short int_hk_t;
333+
typedef unsigned short uint_uhk_t;
334+
typedef signed int int_k_t;
335+
typedef unsigned int uint_uk_t;
336+
typedef signed long int_lk_t;
337+
typedef unsigned long uint_ulk_t;
338+
326339
#endif // LIBC_COMPILER_HAS_FIXED_POINT
327340

328341
#endif // LLVM_LIBC_MACROS_STDFIX_MACROS_H

libc/newhdrgen/yaml/stdfix.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
header: stdfix.h
22
macros: []
3-
types:
4-
- type_name: stdfix_t
3+
types: []
54
enums: []
65
objects: []
76
functions:

0 commit comments

Comments
 (0)