Changeset 24ceace for libcfa/src/bits
- Timestamp:
- May 2, 2022, 3:19:03 AM (4 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 12bb5ab1, 49a1684
- Parents:
- 9e7236f4 (diff), 4b4f95f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- libcfa/src/bits
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/align.hfa
r9e7236f4 r24ceace 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Nov 16 18:58:22 201913 // Update Count : 312 // Last Modified On : Fri Apr 29 19:14:43 2022 13 // Update Count : 4 14 14 // 15 15 // This library is free software; you can redistribute it and/or modify it … … 35 35 //#define libAlign() (sizeof(double)) 36 36 // gcc-7 uses xmms instructions, which require 16 byte alignment. 37 #define libAlign() ( 16)37 #define libAlign() (__BIGGEST_ALIGNMENT__) 38 38 39 39 // Check for power of 2 -
libcfa/src/bits/debug.cfa
r9e7236f4 r24ceace 10 10 // Created On : Thu Mar 30 12:30:01 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 17 11:07:13 202013 // Update Count : 1 212 // Last Modified On : Fri Apr 22 18:20:26 2022 13 // Update Count : 13 14 14 // 15 15 … … 44 44 void __cfaabi_bits_release() __attribute__((__weak__)) {} 45 45 46 void__cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) {46 int __cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) { 47 47 va_list args; 48 48 … … 55 55 __cfaabi_bits_release(); 56 56 va_end( args ); 57 return len; 57 58 } 58 59 59 void__cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) {60 int __cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) { 60 61 va_list args; 61 62 … … 66 67 67 68 va_end( args ); 69 return len; 68 70 } 69 71 70 void__cfaabi_bits_print_vararg( int fd, const char fmt[], va_list args ) {72 int __cfaabi_bits_print_vararg( int fd, const char fmt[], va_list args ) { 71 73 int len = vsnprintf( buffer, buffer_size, fmt, args ); 72 74 __cfaabi_bits_write( fd, buffer, len ); 75 return len; 73 76 } 74 77 75 void__cfaabi_bits_print_buffer( int fd, char in_buffer[], int in_buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) )) {78 int __cfaabi_bits_print_buffer( int fd, char in_buffer[], int in_buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) )) { 76 79 va_list args; 77 80 … … 82 85 83 86 va_end( args ); 87 return len; 84 88 } 85 89 } -
libcfa/src/bits/debug.hfa
r9e7236f4 r24ceace 9 9 // Author : Thierry Delisle 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Apr 27 10:15:00 202013 // Update Count : 1 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Apr 22 18:21:56 2022 13 // Update Count : 11 14 14 // 15 15 … … 46 46 extern void __cfaabi_bits_acquire(); 47 47 extern void __cfaabi_bits_release(); 48 extern void__cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) ));49 extern void__cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) ));50 extern void__cfaabi_bits_print_vararg( int fd, const char fmt[], va_list arg );51 extern void__cfaabi_bits_print_buffer( int fd, char buffer[], int buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) ));48 extern int __cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )); 49 extern int __cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )); 50 extern int __cfaabi_bits_print_vararg( int fd, const char fmt[], va_list arg ); 51 extern int __cfaabi_bits_print_buffer( int fd, char buffer[], int buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) )); 52 52 53 53 #if defined(__CFA_DEBUG_PRINT__) \
Note:
See TracChangeset
for help on using the changeset viewer.